Package schrodinger :: Package ui :: Module picking :: Class PickResiduesChangedMixin
[hide private]
[frames] | no frames]

Class PickResiduesChangedMixin

object --+
         |
        PickResiduesChangedMixin
Known Subclasses:

Mixin to provide common signals for dialogs that allow users to pick residues.

Instance Methods [hide private]
 
residues_centroid_changed(...)
 
residues_changed(...)
 
getResiduesList(self, res_objs)
Return the list of residue strings (e.g.
tuple of (float, float, float)
getResiduesCenter(self, res_objs)
Return the (x, y, z) tuple for the center of the selected residues.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __metaclass__ = qt_utils.signal_mixin_metaclass(dict(residues_...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getResiduesList(self, res_objs)

 

Return the list of residue strings (e.g. ['A:217', 'A:231b']) of the selected residues.

Parameters:
  • res_objs (List of ResidueRow

    @return List of residue strings for each row.

    ) - List of residue objects to get strings for

getResiduesCenter(self, res_objs)

 

Return the (x, y, z) tuple for the center of the selected residues. Will raise ValueError if no residues were picked.

Parameters:
Returns: tuple of (float, float, float)
Tuple of center x, y, z coordinates

Class Variable Details [hide private]

__metaclass__

Value:
qt_utils.signal_mixin_metaclass(dict(residues_centroid_changed= QtCore\
.pyqtSignal(tuple), residues_changed= QtCore.pyqtSignal(list)))