Package schrodinger :: Package application :: Package msv :: Package gui :: Module view :: Class AlignmentSelectionModel
[hide private]
[frames] | no frames]

Class AlignmentSelectionModel

         object --+                
                  |                
  sip.simplewrapper --+            
                      |            
            sip.wrapper --+        
                          |        
       PyQt4.QtCore.QObject --+    
                              |    
PyQt4.QtGui.QItemSelectionModel --+
                                  |
                                 AlignmentSelectionModel

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QItemSelectionModel: SelectionFlag, SelectionFlags

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
 
selectionSetFromStructureModel(self, indices)
Selects the specified indices, unless self.ignoreStructureModel is True
 
residueSelectionChanged(self, selected, deselected)
Inspect changing selections and emit a dict mapping sequences to residues
 
unsetIgnoreStructureModel(self)
Resets the selection model to no longer ignore changes made in the structure model.
tuple
_getRangeForIndex(self, index)
Returns a the top and bottom indices for all cells that should be selected when the given index is selected.
 
select(self, selection, flags)
Inspects the selection, expanding it if necessary, and then calls super with the possibly expanded selection.
QtCore.QItemSelection or QtCore.QModelIndex
_expandSelection(self, selection)
Expand the given selection to include all cells that should be selected along with the specified cells.

Inherited from PyQt4.QtGui.QItemSelectionModel: clear, clearSelection, columnIntersectsSelection, currentChanged, currentColumnChanged, currentIndex, currentRowChanged, emitSelectionChanged, hasSelection, isColumnSelected, isRowSelected, isSelected, model, reset, rowIntersectsSelection, selectedColumns, selectedIndexes, selectedRows, selection, selectionChanged, setCurrentIndex

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __new__

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

Class Variables [hide private]

Inherited from PyQt4.QtGui.QItemSelectionModel: Clear, ClearAndSelect, Columns, Current, Deselect, NoUpdate, Rows, Select, SelectCurrent, Toggle, ToggleCurrent

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Instance Variables [hide private]
 
residuesSelected(...)
A signal emitting with a mapping of sequences to selected residues
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

selectionSetFromStructureModel(self, indices)

 

Selects the specified indices, unless self.ignoreStructureModel is True

Parameters:
  • indices (list of QtCore.QModelIndex) - A list of indices that have been set on the structure model

residueSelectionChanged(self, selected, deselected)

 

Inspect changing selections and emit a dict mapping sequences to residues

Parameters:
  • selected (QtCore.QItemSelection) - selection information
  • deselected (QtCore.QItemSelection) - deselection information

_getRangeForIndex(self, index)

 

Returns a the top and bottom indices for all cells that should be selected when the given index is selected.

If the index represents a residue or a sequence annotation, we want to select the residue and the rest of the annotations.

If the index represents a global annotation, we want to select every residue and annotation at that index in the alignment. (In line wrap mode, this will NOT select the entire column.)

Parameters:
  • index (QtCore.QModelIndex) - The index to select. The index must be valid.
Returns: tuple
A tuple of the top and bottom indices (QtCore.QModelIndex)

select(self, selection, flags)

 

Inspects the selection, expanding it if necessary, and then calls super with the possibly expanded selection. See _getRangeForIndex for an explanation of the expansion.

Parameters:
  • selection (QtCore.QItemSelection or QtCore.QModelIndex) - a selection
  • flags (QtCore.QFlags) - selection flags
Overrides: PyQt4.QtGui.QItemSelectionModel.select

_expandSelection(self, selection)

 

Expand the given selection to include all cells that should be selected along with the specified cells. See _getRangeForIndex for an explanation of the expansion.

Parameters:
  • selection (QtCore.QItemSelection or QtCore.QModelIndex) - The starting selection
Returns: QtCore.QItemSelection or QtCore.QModelIndex
The expanded selection