# 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('_mgapp', [dirname(__file__)]) except ImportError: import _mgapp return _mgapp if fp is not None: try: _mod = imp.load_module('_mgapp', fp, pathname, description) finally: fp.close() return _mod _mgapp = swig_import_helper() del swig_import_helper else: import _mgapp 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 _mgapp.ACV_COLOUR_MODE_UNSET_swigconstant(_mgapp) ACV_COLOUR_MODE_UNSET = _mgapp.ACV_COLOUR_MODE_UNSET _mgapp.ACV_COLOUR_MODE_ICOLOUR_swigconstant(_mgapp) ACV_COLOUR_MODE_ICOLOUR = _mgapp.ACV_COLOUR_MODE_ICOLOUR _mgapp.ACV_COLOUR_MODE_PROPERTY_swigconstant(_mgapp) ACV_COLOUR_MODE_PROPERTY = _mgapp.ACV_COLOUR_MODE_PROPERTY _mgapp.ACV_COLOUR_MODE_BOTH_swigconstant(_mgapp) ACV_COLOUR_MODE_BOTH = _mgapp.ACV_COLOUR_MODE_BOTH _mgapp.COLOUR_WHEEL_CLOCK_swigconstant(_mgapp) COLOUR_WHEEL_CLOCK = _mgapp.COLOUR_WHEEL_CLOCK _mgapp.COLOUR_WHEEL_ANTICLOCK_swigconstant(_mgapp) COLOUR_WHEEL_ANTICLOCK = _mgapp.COLOUR_WHEEL_ANTICLOCK _mgapp.CONN_POINT_POINT_swigconstant(_mgapp) CONN_POINT_POINT = _mgapp.CONN_POINT_POINT _mgapp.CONN_ATOM_POINT_swigconstant(_mgapp) CONN_ATOM_POINT = _mgapp.CONN_ATOM_POINT _mgapp.CONN_POINT_ATOM_swigconstant(_mgapp) CONN_POINT_ATOM = _mgapp.CONN_POINT_ATOM _mgapp.CONN_ATOM_ATOM_swigconstant(_mgapp) CONN_ATOM_ATOM = _mgapp.CONN_ATOM_ATOM _mgapp.CONN_ATOM_DISP_swigconstant(_mgapp) CONN_ATOM_DISP = _mgapp.CONN_ATOM_DISP _mgapp.CONN_POINT_DISP_swigconstant(_mgapp) CONN_POINT_DISP = _mgapp.CONN_POINT_DISP 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 = _mgapp.new_intp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_intp __del__ = lambda self: None def assign(self, value): return _mgapp.intp_assign(self, value) def value(self): return _mgapp.intp_value(self) def cast(self): return _mgapp.intp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _mgapp.intp_frompointer if _newclass: frompointer = staticmethod(_mgapp.intp_frompointer) intp_swigregister = _mgapp.intp_swigregister intp_swigregister(intp) def intp_frompointer(t): return _mgapp.intp_frompointer(t) intp_frompointer = _mgapp.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 = _mgapp.new_doublep() try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_doublep __del__ = lambda self: None def assign(self, value): return _mgapp.doublep_assign(self, value) def value(self): return _mgapp.doublep_value(self) def cast(self): return _mgapp.doublep_cast(self) __swig_getmethods__["frompointer"] = lambda x: _mgapp.doublep_frompointer if _newclass: frompointer = staticmethod(_mgapp.doublep_frompointer) doublep_swigregister = _mgapp.doublep_swigregister doublep_swigregister(doublep) def doublep_frompointer(t): return _mgapp.doublep_frompointer(t) doublep_frompointer = _mgapp.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 = _mgapp.new_floatp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_floatp __del__ = lambda self: None def assign(self, value): return _mgapp.floatp_assign(self, value) def value(self): return _mgapp.floatp_value(self) def cast(self): return _mgapp.floatp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _mgapp.floatp_frompointer if _newclass: frompointer = staticmethod(_mgapp.floatp_frompointer) floatp_swigregister = _mgapp.floatp_swigregister floatp_swigregister(floatp) def floatp_frompointer(t): return _mgapp.floatp_frompointer(t) floatp_frompointer = _mgapp.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 = _mgapp.new_inta(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_inta __del__ = lambda self: None def __getitem__(self, index): return _mgapp.inta___getitem__(self, index) def __setitem__(self, index, value): return _mgapp.inta___setitem__(self, index, value) def cast(self): return _mgapp.inta_cast(self) __swig_getmethods__["frompointer"] = lambda x: _mgapp.inta_frompointer if _newclass: frompointer = staticmethod(_mgapp.inta_frompointer) inta_swigregister = _mgapp.inta_swigregister inta_swigregister(inta) def inta_frompointer(t): return _mgapp.inta_frompointer(t) inta_frompointer = _mgapp.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 = _mgapp.new_doublea(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_doublea __del__ = lambda self: None def __getitem__(self, index): return _mgapp.doublea___getitem__(self, index) def __setitem__(self, index, value): return _mgapp.doublea___setitem__(self, index, value) def cast(self): return _mgapp.doublea_cast(self) __swig_getmethods__["frompointer"] = lambda x: _mgapp.doublea_frompointer if _newclass: frompointer = staticmethod(_mgapp.doublea_frompointer) doublea_swigregister = _mgapp.doublea_swigregister doublea_swigregister(doublea) def doublea_frompointer(t): return _mgapp.doublea_frompointer(t) doublea_frompointer = _mgapp.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 = _mgapp.new_floata(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_floata __del__ = lambda self: None def __getitem__(self, index): return _mgapp.floata___getitem__(self, index) def __setitem__(self, index, value): return _mgapp.floata___setitem__(self, index, value) def cast(self): return _mgapp.floata_cast(self) __swig_getmethods__["frompointer"] = lambda x: _mgapp.floata_frompointer if _newclass: frompointer = staticmethod(_mgapp.floata_frompointer) floata_swigregister = _mgapp.floata_swigregister floata_swigregister(floata) def floata_frompointer(t): return _mgapp.floata_frompointer(t) floata_frompointer = _mgapp.floata_frompointer import mmut import atom_util class CMgAppBase(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CMgAppBase, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CMgAppBase, name) __repr__ = _swig_repr def __init__(self, *args): this = _mgapp.new_CMgAppBase(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_CMgAppBase __del__ = lambda self: None def SetSelHandle(self, selHndin): return _mgapp.CMgAppBase_SetSelHandle(self, selHndin) def GetSelection(self, *args): return _mgapp.CMgAppBase_GetSelection(self, *args) def ClearSelection(self): return _mgapp.CMgAppBase_ClearSelection(self) CMgAppBase_swigregister = _mgapp.CMgAppBase_swigregister CMgAppBase_swigregister(CMgAppBase) _mgapp.NCOLOURMODES_swigconstant(_mgapp) NCOLOURMODES = _mgapp.NCOLOURMODES _mgapp.ONECOLOUR_swigconstant(_mgapp) ONECOLOUR = _mgapp.ONECOLOUR _mgapp.BYATOMTYPE_swigconstant(_mgapp) BYATOMTYPE = _mgapp.BYATOMTYPE _mgapp.BYRESTYPE_swigconstant(_mgapp) BYRESTYPE = _mgapp.BYRESTYPE _mgapp.BYCHAIN_swigconstant(_mgapp) BYCHAIN = _mgapp.BYCHAIN _mgapp.SECSTR_swigconstant(_mgapp) SECSTR = _mgapp.SECSTR _mgapp.SASRES_swigconstant(_mgapp) SASRES = _mgapp.SASRES _mgapp.SASATOM_swigconstant(_mgapp) SASATOM = _mgapp.SASATOM _mgapp.CONTACTRES_swigconstant(_mgapp) CONTACTRES = _mgapp.CONTACTRES _mgapp.CONTACTATOM_swigconstant(_mgapp) CONTACTATOM = _mgapp.CONTACTATOM _mgapp.BVALUE_swigconstant(_mgapp) BVALUE = _mgapp.BVALUE _mgapp.OCCUPANCY_swigconstant(_mgapp) OCCUPANCY = _mgapp.OCCUPANCY _mgapp.ALTLOC_swigconstant(_mgapp) ALTLOC = _mgapp.ALTLOC _mgapp.CHARGE_swigconstant(_mgapp) CHARGE = _mgapp.CHARGE _mgapp.MAINSIDE_swigconstant(_mgapp) MAINSIDE = _mgapp.MAINSIDE _mgapp.USER_SCHEME_swigconstant(_mgapp) USER_SCHEME = _mgapp.USER_SCHEME _mgapp.THRU_CHAIN_swigconstant(_mgapp) THRU_CHAIN = _mgapp.THRU_CHAIN _mgapp.BYMODEL_swigconstant(_mgapp) BYMODEL = _mgapp.BYMODEL _mgapp.BLENDTHRU_swigconstant(_mgapp) BLENDTHRU = _mgapp.BLENDTHRU _mgapp.BLEND_RESIDUE_swigconstant(_mgapp) BLEND_RESIDUE = _mgapp.BLEND_RESIDUE _mgapp.BLEND_SECSTR_swigconstant(_mgapp) BLEND_SECSTR = _mgapp.BLEND_SECSTR _mgapp.BLEND_CHAIN_swigconstant(_mgapp) BLEND_CHAIN = _mgapp.BLEND_CHAIN class CColourScheme(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CColourScheme, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CColourScheme, name) __repr__ = _swig_repr def __init__(self): this = _mgapp.new_CColourScheme() try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_CColourScheme __del__ = lambda self: None def SetSchemeInt(self, *args): return _mgapp.CColourScheme_SetSchemeInt(self, *args) def SetSchemeFloat(self, *args): return _mgapp.CColourScheme_SetSchemeFloat(self, *args) def SetSchemeString(self, *args): return _mgapp.CColourScheme_SetSchemeString(self, *args) def SetInterpolationMode(self, n, m=COLOUR_WHEEL_CLOCK): return _mgapp.CColourScheme_SetInterpolationMode(self, n, m) def GetInterpolationMode(self): return _mgapp.CColourScheme_GetInterpolationMode(self) def GetColourWheelDirection(self): return _mgapp.CColourScheme_GetColourWheelDirection(self) def GetSchemeInt(self): return _mgapp.CColourScheme_GetSchemeInt(self) def GetSchemeFloat(self): return _mgapp.CColourScheme_GetSchemeFloat(self) def GetSchemeString(self): return _mgapp.CColourScheme_GetSchemeString(self) def GetSchemeColours(self): return _mgapp.CColourScheme_GetSchemeColours(self) def GetSchemeCodes(self): return _mgapp.CColourScheme_GetSchemeCodes(self) def Print(self): return _mgapp.CColourScheme_Print(self) def GetFColour(self, value): return _mgapp.CColourScheme_GetFColour(self, value) def GetRGB(self, value): return _mgapp.CColourScheme_GetRGB(self, value) def GetMode(self): return _mgapp.CColourScheme_GetMode(self) CColourScheme_swigregister = _mgapp.CColourScheme_swigregister CColourScheme_swigregister(CColourScheme) class CColourSchemes(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CColourSchemes, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CColourSchemes, name) __repr__ = _swig_repr def __init__(self): this = _mgapp.new_CColourSchemes() try: self.this.append(this) except: self.this = this __swig_setmethods__["AtomType"] = _mgapp.CColourSchemes_AtomType_set __swig_getmethods__["AtomType"] = _mgapp.CColourSchemes_AtomType_get if _newclass: AtomType = _swig_property(_mgapp.CColourSchemes_AtomType_get, _mgapp.CColourSchemes_AtomType_set) __swig_setmethods__["ResType"] = _mgapp.CColourSchemes_ResType_set __swig_getmethods__["ResType"] = _mgapp.CColourSchemes_ResType_get if _newclass: ResType = _swig_property(_mgapp.CColourSchemes_ResType_get, _mgapp.CColourSchemes_ResType_set) __swig_setmethods__["BValue"] = _mgapp.CColourSchemes_BValue_set __swig_getmethods__["BValue"] = _mgapp.CColourSchemes_BValue_get if _newclass: BValue = _swig_property(_mgapp.CColourSchemes_BValue_get, _mgapp.CColourSchemes_BValue_set) __swig_setmethods__["ResSAS"] = _mgapp.CColourSchemes_ResSAS_set __swig_getmethods__["ResSAS"] = _mgapp.CColourSchemes_ResSAS_get if _newclass: ResSAS = _swig_property(_mgapp.CColourSchemes_ResSAS_get, _mgapp.CColourSchemes_ResSAS_set) __swig_setmethods__["AtomSAS"] = _mgapp.CColourSchemes_AtomSAS_set __swig_getmethods__["AtomSAS"] = _mgapp.CColourSchemes_AtomSAS_get if _newclass: AtomSAS = _swig_property(_mgapp.CColourSchemes_AtomSAS_get, _mgapp.CColourSchemes_AtomSAS_set) __swig_setmethods__["ResContact"] = _mgapp.CColourSchemes_ResContact_set __swig_getmethods__["ResContact"] = _mgapp.CColourSchemes_ResContact_get if _newclass: ResContact = _swig_property(_mgapp.CColourSchemes_ResContact_get, _mgapp.CColourSchemes_ResContact_set) __swig_setmethods__["AtomContact"] = _mgapp.CColourSchemes_AtomContact_set __swig_getmethods__["AtomContact"] = _mgapp.CColourSchemes_AtomContact_get if _newclass: AtomContact = _swig_property(_mgapp.CColourSchemes_AtomContact_get, _mgapp.CColourSchemes_AtomContact_set) __swig_setmethods__["Occupancy"] = _mgapp.CColourSchemes_Occupancy_set __swig_getmethods__["Occupancy"] = _mgapp.CColourSchemes_Occupancy_get if _newclass: Occupancy = _swig_property(_mgapp.CColourSchemes_Occupancy_get, _mgapp.CColourSchemes_Occupancy_set) __swig_setmethods__["Charge"] = _mgapp.CColourSchemes_Charge_set __swig_getmethods__["Charge"] = _mgapp.CColourSchemes_Charge_get if _newclass: Charge = _swig_property(_mgapp.CColourSchemes_Charge_get, _mgapp.CColourSchemes_Charge_set) __swig_setmethods__["SecStr"] = _mgapp.CColourSchemes_SecStr_set __swig_getmethods__["SecStr"] = _mgapp.CColourSchemes_SecStr_get if _newclass: SecStr = _swig_property(_mgapp.CColourSchemes_SecStr_get, _mgapp.CColourSchemes_SecStr_set) __swig_setmethods__["MainSide"] = _mgapp.CColourSchemes_MainSide_set __swig_getmethods__["MainSide"] = _mgapp.CColourSchemes_MainSide_get if _newclass: MainSide = _swig_property(_mgapp.CColourSchemes_MainSide_get, _mgapp.CColourSchemes_MainSide_set) __swig_setmethods__["ThruChain"] = _mgapp.CColourSchemes_ThruChain_set __swig_getmethods__["ThruChain"] = _mgapp.CColourSchemes_ThruChain_get if _newclass: ThruChain = _swig_property(_mgapp.CColourSchemes_ThruChain_get, _mgapp.CColourSchemes_ThruChain_set) def GetScheme(self, mode): return _mgapp.CColourSchemes_GetScheme(self, mode) def GetMode(self, mode): return _mgapp.CColourSchemes_GetMode(self, mode) __swig_destroy__ = _mgapp.delete_CColourSchemes __del__ = lambda self: None CColourSchemes_swigregister = _mgapp.CColourSchemes_swigregister CColourSchemes_swigregister(CColourSchemes) class CMolColour(CMgAppBase): __swig_setmethods__ = {} for _s in [CMgAppBase]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CMolColour, name, value) __swig_getmethods__ = {} for _s in [CMgAppBase]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CMolColour, name) __repr__ = _swig_repr def __init__(self, molHndin, selHndin, scheme): this = _mgapp.new_CMolColour(molHndin, selHndin, scheme) try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_CMolColour __del__ = lambda self: None def GetAtomColourVector(self): return _mgapp.CMolColour_GetAtomColourVector(self) def SetSelHandle(self, selHndin): return _mgapp.CMolColour_SetSelHandle(self, selHndin) def SetMode(self, force, mod=-1, non_C_mod=-2, icol=-1, ncols=0, icols=None): return _mgapp.CMolColour_SetMode(self, force, mod, non_C_mod, icol, ncols, icols) def SetOneColour(self, icol): return _mgapp.CMolColour_SetOneColour(self, icol) def SetUDD(self, AtomUDDin, ResUDDin): return _mgapp.CMolColour_SetUDD(self, AtomUDDin, ResUDDin) def SetScheme(self, nrules, def_colour, selHnd, rule_colour, mode=0): return _mgapp.CMolColour_SetScheme(self, nrules, def_colour, selHnd, rule_colour, mode) def SetColourWheelDirection(self, direction): return _mgapp.CMolColour_SetColourWheelDirection(self, direction) def GetSchemeN(self): return _mgapp.CMolColour_GetSchemeN(self) def GetSchemeCodes(self): return _mgapp.CMolColour_GetSchemeCodes(self) def EditColour(self, icol, selHndin): return _mgapp.CMolColour_EditColour(self, icol, selHndin) def Print(self): return _mgapp.CMolColour_Print(self) def ReColour(self): return _mgapp.CMolColour_ReColour(self) CMolColour_swigregister = _mgapp.CMolColour_swigregister CMolColour_swigregister(CMolColour) class DoubleColourSliderInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, DoubleColourSliderInfo, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, DoubleColourSliderInfo, name) __repr__ = _swig_repr def __init__(self, *args): this = _mgapp.new_DoubleColourSliderInfo(*args) try: self.this.append(this) except: self.this = this def getLowerColour(self): return _mgapp.DoubleColourSliderInfo_getLowerColour(self) def getUpperColour(self): return _mgapp.DoubleColourSliderInfo_getUpperColour(self) def getNonAlignedColour(self): return _mgapp.DoubleColourSliderInfo_getNonAlignedColour(self) def getLowerValue(self): return _mgapp.DoubleColourSliderInfo_getLowerValue(self) def getUpperValue(self): return _mgapp.DoubleColourSliderInfo_getUpperValue(self) def getMode(self): return _mgapp.DoubleColourSliderInfo_getMode(self) def getWheelDirection(self): return _mgapp.DoubleColourSliderInfo_getWheelDirection(self) __swig_destroy__ = _mgapp.delete_DoubleColourSliderInfo __del__ = lambda self: None DoubleColourSliderInfo_swigregister = _mgapp.DoubleColourSliderInfo_swigregister DoubleColourSliderInfo_swigregister(DoubleColourSliderInfo) class CMgAppUtils(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CMgAppUtils, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CMgAppUtils, name) __repr__ = _swig_repr def __init__(self, molHndin, selHndin): this = _mgapp.new_CMgAppUtils(molHndin, selHndin) try: self.this.append(this) except: self.this = this def CreateAtomLabels(self, *args): return _mgapp.CMgAppUtils_CreateAtomLabels(self, *args) def DeleteAtomLabels(self, obj): return _mgapp.CMgAppUtils_DeleteAtomLabels(self, obj) __swig_destroy__ = _mgapp.delete_CMgAppUtils __del__ = lambda self: None CMgAppUtils_swigregister = _mgapp.CMgAppUtils_swigregister CMgAppUtils_swigregister(CMgAppUtils) class CMGAlign(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CMGAlign, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CMGAlign, name) __repr__ = _swig_repr __swig_setmethods__["nSSEMatches"] = _mgapp.CMGAlign_nSSEMatches_set __swig_getmethods__["nSSEMatches"] = _mgapp.CMGAlign_nSSEMatches_get if _newclass: nSSEMatches = _swig_property(_mgapp.CMGAlign_nSSEMatches_get, _mgapp.CMGAlign_nSSEMatches_set) __swig_setmethods__["matchNumber"] = _mgapp.CMGAlign_matchNumber_set __swig_getmethods__["matchNumber"] = _mgapp.CMGAlign_matchNumber_get if _newclass: matchNumber = _swig_property(_mgapp.CMGAlign_matchNumber_get, _mgapp.CMGAlign_matchNumber_set) __swig_setmethods__["SSE_match"] = _mgapp.CMGAlign_SSE_match_set __swig_getmethods__["SSE_match"] = _mgapp.CMGAlign_SSE_match_get if _newclass: SSE_match = _swig_property(_mgapp.CMGAlign_SSE_match_get, _mgapp.CMGAlign_SSE_match_set) __swig_setmethods__["rmsd_nat"] = _mgapp.CMGAlign_rmsd_nat_set __swig_getmethods__["rmsd_nat"] = _mgapp.CMGAlign_rmsd_nat_get if _newclass: rmsd_nat = _swig_property(_mgapp.CMGAlign_rmsd_nat_get, _mgapp.CMGAlign_rmsd_nat_set) def __init__(self): this = _mgapp.new_CMGAlign() try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_CMGAlign __del__ = lambda self: None def GetMatchNumber(self): return _mgapp.CMGAlign_GetMatchNumber(self) def GetNumberofSSEMatches(self): return _mgapp.CMGAlign_GetNumberofSSEMatches(self) def GetRMSD(self): return _mgapp.CMGAlign_GetRMSD(self) def LoadConnectivity2(self, M1, M2, x_selHnd1=-1, x_selHnd2=-1, camatch=None): return _mgapp.CMGAlign_LoadConnectivity2(self, M1, M2, x_selHnd1, x_selHnd2, camatch) def Print(self, *args): return _mgapp.CMGAlign_Print(self, *args) def MGAlign(self, M1, M2, precision, connectivity, mask_selHnd1, mask_selHnd2, matchNo, camatch): return _mgapp.CMGAlign_MGAlign(self, M1, M2, precision, connectivity, mask_selHnd1, mask_selHnd2, matchNo, camatch) def PrintSSEMatches(self, M1, M2, G1, G2, nm, F1, F2): return _mgapp.CMGAlign_PrintSSEMatches(self, M1, M2, G1, G2, nm, F1, F2) def SuperposeCloseAtoms(self, fxMolHnd, fxSelHnd, mvMolHnd, central_cutoff, cutoff, mvSuperposeHnd, fxSuperposeHnd): return _mgapp.CMGAlign_SuperposeCloseAtoms(self, fxMolHnd, fxSelHnd, mvMolHnd, central_cutoff, cutoff, mvSuperposeHnd, fxSuperposeHnd) CMGAlign_swigregister = _mgapp.CMGAlign_swigregister CMGAlign_swigregister(CMGAlign) _mgapp.SPSN_Ok_swigconstant(_mgapp) SPSN_Ok = _mgapp.SPSN_Ok _mgapp.SPSN_noHits_swigconstant(_mgapp) SPSN_noHits = _mgapp.SPSN_noHits _mgapp.SPSN_noSPSN_swigconstant(_mgapp) SPSN_noSPSN = _mgapp.SPSN_noSPSN _mgapp.SPSN_noGraph_swigconstant(_mgapp) SPSN_noGraph = _mgapp.SPSN_noGraph _mgapp.SPSN_noVertices_swigconstant(_mgapp) SPSN_noVertices = _mgapp.SPSN_noVertices _mgapp.SPSN_noGraph2_swigconstant(_mgapp) SPSN_noGraph2 = _mgapp.SPSN_noGraph2 _mgapp.SPSN_noVertices2_swigconstant(_mgapp) SPSN_noVertices2 = _mgapp.SPSN_noVertices2 _mgapp.CONE_RADIUS_FIXED_swigconstant(_mgapp) CONE_RADIUS_FIXED = _mgapp.CONE_RADIUS_FIXED _mgapp.CONE_RADIUS_FRACTION_swigconstant(_mgapp) CONE_RADIUS_FRACTION = _mgapp.CONE_RADIUS_FRACTION _mgapp.ARROW_HEAD_END_swigconstant(_mgapp) ARROW_HEAD_END = _mgapp.ARROW_HEAD_END _mgapp.ARROW_HEAD_START_swigconstant(_mgapp) ARROW_HEAD_START = _mgapp.ARROW_HEAD_START _mgapp.ARROW_HEAD_BOTH_swigconstant(_mgapp) ARROW_HEAD_BOTH = _mgapp.ARROW_HEAD_BOTH _mgapp.NO_SCALING_swigconstant(_mgapp) NO_SCALING = _mgapp.NO_SCALING _mgapp.SCALE_ALL_swigconstant(_mgapp) SCALE_ALL = _mgapp.SCALE_ALL _mgapp.SCALE_BY_TAGS_swigconstant(_mgapp) SCALE_BY_TAGS = _mgapp.SCALE_BY_TAGS class MGVectors(mmut.Connectivity2): __swig_setmethods__ = {} for _s in [mmut.Connectivity2]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, MGVectors, name, value) __swig_getmethods__ = {} for _s in [mmut.Connectivity2]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, MGVectors, name) __repr__ = _swig_repr def __init__(self, data_mode=CONN_ATOM_ATOM, crystal_axes=0, tagged=0): this = _mgapp.new_MGVectors(data_mode, crystal_axes, tagged) try: self.this.append(this) except: self.this = this __swig_destroy__ = _mgapp.delete_MGVectors __del__ = lambda self: None def SetFont(self, family, weight, slant, size): return _mgapp.MGVectors_SetFont(self, family, weight, slant, size) def SetLabel(self, labelstyle_in, labelcolour_in): return _mgapp.MGVectors_SetLabel(self, labelstyle_in, labelcolour_in) def SetVectorStyle(self, style_in): return _mgapp.MGVectors_SetVectorStyle(self, style_in) def SetVectorColour(self, colour): return _mgapp.MGVectors_SetVectorColour(self, colour) def SetLineWidth(self, width): return _mgapp.MGVectors_SetLineWidth(self, width) def SetConeRadius(self, mode, radius, fraction): return _mgapp.MGVectors_SetConeRadius(self, mode, radius, fraction) def SetCylinderRadius(self, radius): return _mgapp.MGVectors_SetCylinderRadius(self, radius) def SetArrowHead(self, mode): return _mgapp.MGVectors_SetArrowHead(self, mode) def SetDashLength(self, length): return _mgapp.MGVectors_SetDashLength(self, length) def SetDashEnd(self, end): return _mgapp.MGVectors_SetDashEnd(self, end) def Draw(self, obj, selTags, apply_sel, scaleFactors, applyScaleFactors): return _mgapp.MGVectors_Draw(self, obj, selTags, apply_sel, scaleFactors, applyScaleFactors) MGVectors_swigregister = _mgapp.MGVectors_swigregister MGVectors_swigregister(MGVectors) # This file is compatible with both classic and new-style classes.