Voxel.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. # This file was automatically generated by SWIG (http://www.swig.org).
  2. # Version 3.0.8
  3. #
  4. # Do not make changes to this file unless you know what you are doing--modify
  5. # the SWIG interface file instead.
  6. from sys import version_info
  7. if version_info >= (2, 6, 0):
  8. def swig_import_helper():
  9. from os.path import dirname
  10. import imp
  11. fp = None
  12. try:
  13. fp, pathname, description = imp.find_module('_Voxel', [dirname(__file__)])
  14. except ImportError:
  15. import _Voxel
  16. return _Voxel
  17. if fp is not None:
  18. try:
  19. _mod = imp.load_module('_Voxel', fp, pathname, description)
  20. finally:
  21. fp.close()
  22. return _mod
  23. _Voxel = swig_import_helper()
  24. del swig_import_helper
  25. else:
  26. import _Voxel
  27. del version_info
  28. from _Voxel import *
  29. try:
  30. _swig_property = property
  31. except NameError:
  32. pass # Python < 2.2 doesn't have 'property'.
  33. def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
  34. if (name == "thisown"):
  35. return self.this.own(value)
  36. if (name == "this"):
  37. if type(value).__name__ == 'SwigPyObject':
  38. self.__dict__[name] = value
  39. return
  40. method = class_type.__swig_setmethods__.get(name, None)
  41. if method:
  42. return method(self, value)
  43. if (not static):
  44. if _newclass:
  45. object.__setattr__(self, name, value)
  46. else:
  47. self.__dict__[name] = value
  48. else:
  49. raise AttributeError("You cannot add attributes to %s" % self)
  50. def _swig_setattr(self, class_type, name, value):
  51. return _swig_setattr_nondynamic(self, class_type, name, value, 0)
  52. def _swig_getattr_nondynamic(self, class_type, name, static=1):
  53. if (name == "thisown"):
  54. return self.this.own()
  55. method = class_type.__swig_getmethods__.get(name, None)
  56. if method:
  57. return method(self)
  58. if (not static):
  59. return object.__getattr__(self, name)
  60. else:
  61. raise AttributeError(name)
  62. def _swig_getattr(self, class_type, name):
  63. return _swig_getattr_nondynamic(self, class_type, name, 0)
  64. def _swig_repr(self):
  65. try:
  66. strthis = "proxy of " + self.this.__repr__()
  67. except Exception:
  68. strthis = ""
  69. return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
  70. try:
  71. _object = object
  72. _newclass = 1
  73. except AttributeError:
  74. class _object:
  75. pass
  76. _newclass = 0
  77. # This file is compatible with both classic and new-style classes.