# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.6 # # 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): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_field', [dirname(__file__)]) except ImportError: import _field return _field if fp is not None: try: _mod = imp.load_module('_field', fp, pathname, description) finally: fp.close() return _mod _field = swig_import_helper() del swig_import_helper else: import _field del version_info 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) 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) if (not static): 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_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 = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object: pass _newclass = 0 class SwigPyIterator(_object): __swig_setmethods__ = {} __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") __repr__ = _swig_repr __swig_destroy__ = _field.delete_SwigPyIterator __del__ = lambda self: None def value(self): return _field.SwigPyIterator_value(self) def incr(self, n=1): return _field.SwigPyIterator_incr(self, n) def decr(self, n=1): return _field.SwigPyIterator_decr(self, n) def distance(self, x): return _field.SwigPyIterator_distance(self, x) def equal(self, x): return _field.SwigPyIterator_equal(self, x) def copy(self): return _field.SwigPyIterator_copy(self) def next(self): return _field.SwigPyIterator_next(self) def __next__(self): return _field.SwigPyIterator___next__(self) def previous(self): return _field.SwigPyIterator_previous(self) def advance(self, n): return _field.SwigPyIterator_advance(self, n) def __eq__(self, x): return _field.SwigPyIterator___eq__(self, x) def __ne__(self, x): return _field.SwigPyIterator___ne__(self, x) def __iadd__(self, n): return _field.SwigPyIterator___iadd__(self, n) def __isub__(self, n): return _field.SwigPyIterator___isub__(self, n) def __add__(self, n): return _field.SwigPyIterator___add__(self, n) def __sub__(self, *args): return _field.SwigPyIterator___sub__(self, *args) def __iter__(self): return self SwigPyIterator_swigregister = _field.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) class intp(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, intp, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, intp, name) __repr__ = _swig_repr def __init__(self): this = _field.new_intp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _field.delete_intp __del__ = lambda self: None def assign(self, value): return _field.intp_assign(self, value) def value(self): return _field.intp_value(self) def cast(self): return _field.intp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _field.intp_frompointer if _newclass: frompointer = staticmethod(_field.intp_frompointer) intp_swigregister = _field.intp_swigregister intp_swigregister(intp) def intp_frompointer(t): return _field.intp_frompointer(t) intp_frompointer = _field.intp_frompointer class doublep(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, doublep, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, doublep, name) __repr__ = _swig_repr def __init__(self): this = _field.new_doublep() try: self.this.append(this) except: self.this = this __swig_destroy__ = _field.delete_doublep __del__ = lambda self: None def assign(self, value): return _field.doublep_assign(self, value) def value(self): return _field.doublep_value(self) def cast(self): return _field.doublep_cast(self) __swig_getmethods__["frompointer"] = lambda x: _field.doublep_frompointer if _newclass: frompointer = staticmethod(_field.doublep_frompointer) doublep_swigregister = _field.doublep_swigregister doublep_swigregister(doublep) def doublep_frompointer(t): return _field.doublep_frompointer(t) doublep_frompointer = _field.doublep_frompointer class floatp(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, floatp, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, floatp, name) __repr__ = _swig_repr def __init__(self): this = _field.new_floatp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _field.delete_floatp __del__ = lambda self: None def assign(self, value): return _field.floatp_assign(self, value) def value(self): return _field.floatp_value(self) def cast(self): return _field.floatp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _field.floatp_frompointer if _newclass: frompointer = staticmethod(_field.floatp_frompointer) floatp_swigregister = _field.floatp_swigregister floatp_swigregister(floatp) def floatp_frompointer(t): return _field.floatp_frompointer(t) floatp_frompointer = _field.floatp_frompointer class inta(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, inta, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, inta, name) __repr__ = _swig_repr def __init__(self, nelements): this = _field.new_inta(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _field.delete_inta __del__ = lambda self: None def __getitem__(self, index): return _field.inta___getitem__(self, index) def __setitem__(self, index, value): return _field.inta___setitem__(self, index, value) def cast(self): return _field.inta_cast(self) __swig_getmethods__["frompointer"] = lambda x: _field.inta_frompointer if _newclass: frompointer = staticmethod(_field.inta_frompointer) inta_swigregister = _field.inta_swigregister inta_swigregister(inta) def inta_frompointer(t): return _field.inta_frompointer(t) inta_frompointer = _field.inta_frompointer class doublea(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, doublea, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, doublea, name) __repr__ = _swig_repr def __init__(self, nelements): this = _field.new_doublea(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _field.delete_doublea __del__ = lambda self: None def __getitem__(self, index): return _field.doublea___getitem__(self, index) def __setitem__(self, index, value): return _field.doublea___setitem__(self, index, value) def cast(self): return _field.doublea_cast(self) __swig_getmethods__["frompointer"] = lambda x: _field.doublea_frompointer if _newclass: frompointer = staticmethod(_field.doublea_frompointer) doublea_swigregister = _field.doublea_swigregister doublea_swigregister(doublea) def doublea_frompointer(t): return _field.doublea_frompointer(t) doublea_frompointer = _field.doublea_frompointer class floata(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, floata, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, floata, name) __repr__ = _swig_repr def __init__(self, nelements): this = _field.new_floata(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _field.delete_floata __del__ = lambda self: None def __getitem__(self, index): return _field.floata___getitem__(self, index) def __setitem__(self, index, value): return _field.floata___setitem__(self, index, value) def cast(self): return _field.floata_cast(self) __swig_getmethods__["frompointer"] = lambda x: _field.floata_frompointer if _newclass: frompointer = staticmethod(_field.floata_frompointer) floata_swigregister = _field.floata_swigregister floata_swigregister(floata) def floata_frompointer(t): return _field.floata_frompointer(t) floata_frompointer = _field.floata_frompointer class Field(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Field, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Field, name) __repr__ = _swig_repr def __init__(self): this = _field.new_Field() try: self.this.append(this) except: self.this = this __swig_destroy__ = _field.delete_Field __del__ = lambda self: None __swig_setmethods__["ptScalarField"] = _field.Field_ptScalarField_set __swig_getmethods__["ptScalarField"] = _field.Field_ptScalarField_get if _newclass: ptScalarField = _swig_property(_field.Field_ptScalarField_get, _field.Field_ptScalarField_set) __swig_setmethods__["nCellsX"] = _field.Field_nCellsX_set __swig_getmethods__["nCellsX"] = _field.Field_nCellsX_get if _newclass: nCellsX = _swig_property(_field.Field_nCellsX_get, _field.Field_nCellsX_set) __swig_setmethods__["nCellsY"] = _field.Field_nCellsY_set __swig_getmethods__["nCellsY"] = _field.Field_nCellsY_get if _newclass: nCellsY = _swig_property(_field.Field_nCellsY_get, _field.Field_nCellsY_set) __swig_setmethods__["nCellsZ"] = _field.Field_nCellsZ_set __swig_getmethods__["nCellsZ"] = _field.Field_nCellsZ_get if _newclass: nCellsZ = _swig_property(_field.Field_nCellsZ_get, _field.Field_nCellsZ_set) __swig_setmethods__["fCellLengthX"] = _field.Field_fCellLengthX_set __swig_getmethods__["fCellLengthX"] = _field.Field_fCellLengthX_get if _newclass: fCellLengthX = _swig_property(_field.Field_fCellLengthX_get, _field.Field_fCellLengthX_set) __swig_setmethods__["fCellLengthY"] = _field.Field_fCellLengthY_set __swig_getmethods__["fCellLengthY"] = _field.Field_fCellLengthY_get if _newclass: fCellLengthY = _swig_property(_field.Field_fCellLengthY_get, _field.Field_fCellLengthY_set) __swig_setmethods__["fCellLengthZ"] = _field.Field_fCellLengthZ_set __swig_getmethods__["fCellLengthZ"] = _field.Field_fCellLengthZ_get if _newclass: fCellLengthZ = _swig_property(_field.Field_fCellLengthZ_get, _field.Field_fCellLengthZ_set) __swig_setmethods__["origin"] = _field.Field_origin_set __swig_getmethods__["origin"] = _field.Field_origin_get if _newclass: origin = _swig_property(_field.Field_origin_get, _field.Field_origin_set) def random_field(self, x, y, z, dx, dy, dz): return _field.Field_random_field(self, x, y, z, dx, dy, dz) def Print(self): return _field.Field_Print(self) def Max(self): return _field.Field_Max(self) def Min(self): return _field.Field_Min(self) def GenerateStats(self): return _field.Field_GenerateStats(self) def GetValueAtPoint(self, p): return _field.Field_GetValueAtPoint(self, p) Field_swigregister = _field.Field_swigregister Field_swigregister(Field) class NonUniformField(Field): __swig_setmethods__ = {} for _s in [Field]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, NonUniformField, name, value) __swig_getmethods__ = {} for _s in [Field]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, NonUniformField, name) __repr__ = _swig_repr def __init__(self): this = _field.new_NonUniformField() try: self.this.append(this) except: self.this = this __swig_destroy__ = _field.delete_NonUniformField __del__ = lambda self: None def GetValueAtPoint(self, p): return _field.NonUniformField_GetValueAtPoint(self, p) NonUniformField_swigregister = _field.NonUniformField_swigregister NonUniformField_swigregister(NonUniformField) def ReadCubeFile(filename): return _field.ReadCubeFile(filename) ReadCubeFile = _field.ReadCubeFile def GetField(fields, nfield): return _field.GetField(fields, nfield) GetField = _field.GetField def GetNumFields(fields): return _field.GetNumFields(fields) GetNumFields = _field.GetNumFields class FieldVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, FieldVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, FieldVector, name) __repr__ = _swig_repr def iterator(self): return _field.FieldVector_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): return _field.FieldVector___nonzero__(self) def __bool__(self): return _field.FieldVector___bool__(self) def __len__(self): return _field.FieldVector___len__(self) def pop(self): return _field.FieldVector_pop(self) def __getslice__(self, i, j): return _field.FieldVector___getslice__(self, i, j) def __setslice__(self, *args): return _field.FieldVector___setslice__(self, *args) def __delslice__(self, i, j): return _field.FieldVector___delslice__(self, i, j) def __delitem__(self, *args): return _field.FieldVector___delitem__(self, *args) def __getitem__(self, *args): return _field.FieldVector___getitem__(self, *args) def __setitem__(self, *args): return _field.FieldVector___setitem__(self, *args) def append(self, x): return _field.FieldVector_append(self, x) def empty(self): return _field.FieldVector_empty(self) def size(self): return _field.FieldVector_size(self) def clear(self): return _field.FieldVector_clear(self) def swap(self, v): return _field.FieldVector_swap(self, v) def get_allocator(self): return _field.FieldVector_get_allocator(self) def begin(self): return _field.FieldVector_begin(self) def end(self): return _field.FieldVector_end(self) def rbegin(self): return _field.FieldVector_rbegin(self) def rend(self): return _field.FieldVector_rend(self) def pop_back(self): return _field.FieldVector_pop_back(self) def erase(self, *args): return _field.FieldVector_erase(self, *args) def __init__(self, *args): this = _field.new_FieldVector(*args) try: self.this.append(this) except: self.this = this def push_back(self, x): return _field.FieldVector_push_back(self, x) def front(self): return _field.FieldVector_front(self) def back(self): return _field.FieldVector_back(self) def assign(self, n, x): return _field.FieldVector_assign(self, n, x) def resize(self, *args): return _field.FieldVector_resize(self, *args) def insert(self, *args): return _field.FieldVector_insert(self, *args) def reserve(self, n): return _field.FieldVector_reserve(self, n) def capacity(self): return _field.FieldVector_capacity(self) __swig_destroy__ = _field.delete_FieldVector __del__ = lambda self: None FieldVector_swigregister = _field.FieldVector_swigregister FieldVector_swigregister(FieldVector) # This file is compatible with both classic and new-style classes.