# 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('_symmetry', [dirname(__file__)]) except ImportError: import _symmetry return _symmetry if fp is not None: try: _mod = imp.load_module('_symmetry', fp, pathname, description) finally: fp.close() return _mod _symmetry = swig_import_helper() del swig_import_helper else: import _symmetry 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 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 = _symmetry.new_intp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _symmetry.delete_intp __del__ = lambda self: None def assign(self, value): return _symmetry.intp_assign(self, value) def value(self): return _symmetry.intp_value(self) def cast(self): return _symmetry.intp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _symmetry.intp_frompointer if _newclass: frompointer = staticmethod(_symmetry.intp_frompointer) intp_swigregister = _symmetry.intp_swigregister intp_swigregister(intp) def intp_frompointer(t): return _symmetry.intp_frompointer(t) intp_frompointer = _symmetry.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 = _symmetry.new_doublep() try: self.this.append(this) except: self.this = this __swig_destroy__ = _symmetry.delete_doublep __del__ = lambda self: None def assign(self, value): return _symmetry.doublep_assign(self, value) def value(self): return _symmetry.doublep_value(self) def cast(self): return _symmetry.doublep_cast(self) __swig_getmethods__["frompointer"] = lambda x: _symmetry.doublep_frompointer if _newclass: frompointer = staticmethod(_symmetry.doublep_frompointer) doublep_swigregister = _symmetry.doublep_swigregister doublep_swigregister(doublep) def doublep_frompointer(t): return _symmetry.doublep_frompointer(t) doublep_frompointer = _symmetry.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 = _symmetry.new_floatp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _symmetry.delete_floatp __del__ = lambda self: None def assign(self, value): return _symmetry.floatp_assign(self, value) def value(self): return _symmetry.floatp_value(self) def cast(self): return _symmetry.floatp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _symmetry.floatp_frompointer if _newclass: frompointer = staticmethod(_symmetry.floatp_frompointer) floatp_swigregister = _symmetry.floatp_swigregister floatp_swigregister(floatp) def floatp_frompointer(t): return _symmetry.floatp_frompointer(t) floatp_frompointer = _symmetry.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 = _symmetry.new_inta(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _symmetry.delete_inta __del__ = lambda self: None def __getitem__(self, index): return _symmetry.inta___getitem__(self, index) def __setitem__(self, index, value): return _symmetry.inta___setitem__(self, index, value) def cast(self): return _symmetry.inta_cast(self) __swig_getmethods__["frompointer"] = lambda x: _symmetry.inta_frompointer if _newclass: frompointer = staticmethod(_symmetry.inta_frompointer) inta_swigregister = _symmetry.inta_swigregister inta_swigregister(inta) def inta_frompointer(t): return _symmetry.inta_frompointer(t) inta_frompointer = _symmetry.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 = _symmetry.new_doublea(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _symmetry.delete_doublea __del__ = lambda self: None def __getitem__(self, index): return _symmetry.doublea___getitem__(self, index) def __setitem__(self, index, value): return _symmetry.doublea___setitem__(self, index, value) def cast(self): return _symmetry.doublea_cast(self) __swig_getmethods__["frompointer"] = lambda x: _symmetry.doublea_frompointer if _newclass: frompointer = staticmethod(_symmetry.doublea_frompointer) doublea_swigregister = _symmetry.doublea_swigregister doublea_swigregister(doublea) def doublea_frompointer(t): return _symmetry.doublea_frompointer(t) doublea_frompointer = _symmetry.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 = _symmetry.new_floata(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _symmetry.delete_floata __del__ = lambda self: None def __getitem__(self, index): return _symmetry.floata___getitem__(self, index) def __setitem__(self, index, value): return _symmetry.floata___setitem__(self, index, value) def cast(self): return _symmetry.floata_cast(self) __swig_getmethods__["frompointer"] = lambda x: _symmetry.floata_frompointer if _newclass: frompointer = staticmethod(_symmetry.floata_frompointer) floata_swigregister = _symmetry.floata_swigregister floata_swigregister(floata) def floata_frompointer(t): return _symmetry.floata_frompointer(t) floata_frompointer = _symmetry.floata_frompointer class symm_trans_t(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, symm_trans_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, symm_trans_t, name) __repr__ = _swig_repr def __init__(self, n, x, y, z): this = _symmetry.new_symm_trans_t(n, x, y, z) try: self.this.append(this) except: self.this = this def isym(self): return _symmetry.symm_trans_t_isym(self) def x(self): return _symmetry.symm_trans_t_x(self) def y(self): return _symmetry.symm_trans_t_y(self) def z(self): return _symmetry.symm_trans_t_z(self) def is_identity(self): return _symmetry.symm_trans_t_is_identity(self) def str(self): return _symmetry.symm_trans_t_str(self) __swig_destroy__ = _symmetry.delete_symm_trans_t __del__ = lambda self: None symm_trans_t_swigregister = _symmetry.symm_trans_t_swigregister symm_trans_t_swigregister(symm_trans_t) class molecule_extents_t(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, molecule_extents_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, molecule_extents_t, name) __repr__ = _swig_repr def __init__(self, SelAtoms, nSelAtoms): this = _symmetry.new_molecule_extents_t(SelAtoms, nSelAtoms) try: self.this.append(this) except: self.this = this __swig_destroy__ = _symmetry.delete_molecule_extents_t __del__ = lambda self: None def get_front(self): return _symmetry.molecule_extents_t_get_front(self) def get_back(self): return _symmetry.molecule_extents_t_get_back(self) def get_left(self): return _symmetry.molecule_extents_t_get_left(self) def get_right(self): return _symmetry.molecule_extents_t_get_right(self) def get_top(self): return _symmetry.molecule_extents_t_get_top(self) def get_bottom(self): return _symmetry.molecule_extents_t_get_bottom(self) def get_centre(self): return _symmetry.molecule_extents_t_get_centre(self) def which_box_contacts(self, point, molhnd, selHnd, tl, tr, br, bl, radius): return _symmetry.molecule_extents_t_which_box_contacts(self, point, molhnd, selHnd, tl, tr, br, bl, radius) def which_box(self, point, molhnd, SelAtoms, nSelAtoms, tl, tr, br, bl, radius): return _symmetry.molecule_extents_t_which_box(self, point, molhnd, SelAtoms, nSelAtoms, tl, tr, br, bl, radius) def GetUnitCellOps(self, molhnd, xshifts, yshifts, zshifts): return _symmetry.molecule_extents_t_GetUnitCellOps(self, molhnd, xshifts, yshifts, zshifts) def trans_sel(self, my_cryst, symm_trans): return _symmetry.molecule_extents_t_trans_sel(self, my_cryst, symm_trans) def point_is_in_box(self, point, TransSel): return _symmetry.molecule_extents_t_point_is_in_box(self, point, TransSel) def point_is_near_centre_of_box(self, point, TransSel, radius): return _symmetry.molecule_extents_t_point_is_near_centre_of_box(self, point, TransSel, radius) molecule_extents_t_swigregister = _symmetry.molecule_extents_t_swigregister molecule_extents_t_swigregister(molecule_extents_t) class Cell_Translation(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Cell_Translation, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Cell_Translation, name) __repr__ = _swig_repr __swig_setmethods__["us"] = _symmetry.Cell_Translation_us_set __swig_getmethods__["us"] = _symmetry.Cell_Translation_us_get if _newclass: us = _swig_property(_symmetry.Cell_Translation_us_get, _symmetry.Cell_Translation_us_set) __swig_setmethods__["vs"] = _symmetry.Cell_Translation_vs_set __swig_getmethods__["vs"] = _symmetry.Cell_Translation_vs_get if _newclass: vs = _swig_property(_symmetry.Cell_Translation_vs_get, _symmetry.Cell_Translation_vs_set) __swig_setmethods__["ws"] = _symmetry.Cell_Translation_ws_set __swig_getmethods__["ws"] = _symmetry.Cell_Translation_ws_get if _newclass: ws = _swig_property(_symmetry.Cell_Translation_ws_get, _symmetry.Cell_Translation_ws_set) def __init__(self, a, b, c): this = _symmetry.new_Cell_Translation(a, b, c) try: self.this.append(this) except: self.this = this __swig_destroy__ = _symmetry.delete_Cell_Translation __del__ = lambda self: None Cell_Translation_swigregister = _symmetry.Cell_Translation_swigregister Cell_Translation_swigregister(Cell_Translation) class Symmetry(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Symmetry, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Symmetry, name) __repr__ = _swig_repr def __init__(self, molhnd_in, selHnd_in, point_in, tl_in, tr_in, br_in, bl_in, draw_unit_cell=0, xshifts=0, yshifts=0, zshifts=0, radius=50, draw_contacts=0): this = _symmetry.new_Symmetry(molhnd_in, selHnd_in, point_in, tl_in, tr_in, br_in, bl_in, draw_unit_cell, xshifts, yshifts, zshifts, radius, draw_contacts) try: self.this.append(this) except: self.this = this __swig_destroy__ = _symmetry.delete_Symmetry __del__ = lambda self: None def trans_sel(self, symm_tran): return _symmetry.Symmetry_trans_sel(self, symm_tran) def AddSymmetry(self, symm_distance): return _symmetry.Symmetry_AddSymmetry(self, symm_distance) def GetSymmetries(self): return _symmetry.Symmetry_GetSymmetries(self) def GetSymmTrans(self): return _symmetry.Symmetry_GetSymmTrans(self) def GetSymmetryMatrices(self): return _symmetry.Symmetry_GetSymmetryMatrices(self) def GetSymmetryMatrixNumbers(self): return _symmetry.Symmetry_GetSymmetryMatrixNumbers(self) def GetUnitCell(self): return _symmetry.Symmetry_GetUnitCell(self) def GetSymmetry(self, nsym): return _symmetry.Symmetry_GetSymmetry(self, nsym) def GetNumSymmetries(self): return _symmetry.Symmetry_GetNumSymmetries(self) def ExtentSize(self): return _symmetry.Symmetry_ExtentSize(self) def Extent(self): return _symmetry.Symmetry_Extent(self) Symmetry_swigregister = _symmetry.Symmetry_swigregister Symmetry_swigregister(Symmetry) import pygl_coord # This file is compatible with both classic and new-style classes.