Package schrodinger :: Package application :: Package msv :: Package gui :: Module viewmodel :: Class AnnotationFilterProxyModel
[hide private]
[frames] | no frames]

Class AnnotationFilterProxyModel

                             object --+        
                                      |        
                             ProxyMixin --+    
                                          |    
                   PostReorderingProxyMixin --+
                                              |
         object --+                           |
                  |                           |
  sip.simplewrapper --+                       |
                      |                       |
            sip.wrapper --+                   |
                          |                   |
       PyQt4.QtCore.QObject --+               |
                              |               |
PyQt4.QtCore.QAbstractItemModel --+           |
                                  |           |
    PyQt4.QtGui.QAbstractProxyModel --+       |
                                      |       |
      PyQt4.QtGui.QSortFilterProxyModel --+   |
                                          |   |
            Qt.QtCore.QSortFilterProxyModel --+
                                              |
                                             AnnotationFilterProxyModel

A proxy model that allows only specified annotations. Annotations are represented using the annotation enums from the annotation module.

Nested Classes [hide private]

Inherited from ProxyMixin: __metaclass__

Instance Methods [hide private]
 
__init__(self, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
setSourceModel(self, model)
 
setShownRowTypes(self, row_types)
Allow only the specified annotations
set
getShownRowTypes(self)
Return a set of allowed annotation types
 
setVisibilityForRowType(self, row_type, show=True)
Toggle visibility for the specified annotation
 
setVisibilityForRowTypes(self, row_types, show=True)
Toggle visibility for the specified annotations
 
invalidateFilter(self)
Emits sets of shown global and sequence level annotations respectively in addition to performing the default behavior.
 
filterAcceptsRow(self, source_row, source_parent=None)
 
data(self, index, role=0)
 
columnCount(self, parent=None)
 
filterAcceptsColumn(self, source_column, source_parent=None)

Inherited from PostReorderingProxyMixin: reorderRow

Inherited from PostReorderingProxyMixin (private): _mapRowToSource

Inherited from ProxyMixin: emitResidueSelection, getResidueDisplayMode, residueFormatChanged, residuesSelected, sourceModel

Inherited from Qt.QtCore.QSortFilterProxyModel: reset, setRoleNames, setSupportedDragActions

Inherited from PyQt4.QtGui.QSortFilterProxyModel: buddy, canFetchMore, clear, dropMimeData, dynamicSortFilter, fetchMore, filterCaseSensitivity, filterChanged, filterKeyColumn, filterRegExp, filterRole, flags, hasChildren, headerData, index, insertColumns, insertRows, invalidate, isSortLocaleAware, lessThan, mapFromSource, mapSelectionFromSource, mapSelectionToSource, mapToSource, match, mimeData, mimeTypes, parent, removeColumns, removeRows, rowCount, setData, setDynamicSortFilter, setFilterCaseSensitivity, setFilterFixedString, setFilterKeyColumn, setFilterRegExp, setFilterRole, setFilterWildcard, setHeaderData, setSortCaseSensitivity, setSortLocaleAware, setSortRole, sort, sortCaseSensitivity, sortColumn, sortOrder, sortRole, span, supportedDropActions

Inherited from PyQt4.QtGui.QAbstractProxyModel: itemData, revert, setItemData, submit

Inherited from PyQt4.QtCore.QAbstractItemModel: beginInsertColumns, beginInsertRows, beginMoveColumns, beginMoveRows, beginRemoveColumns, beginRemoveRows, beginResetModel, changePersistentIndex, changePersistentIndexList, columnsAboutToBeInserted, columnsAboutToBeMoved, columnsAboutToBeRemoved, columnsInserted, columnsMoved, columnsRemoved, createIndex, dataChanged, decodeData, encodeData, endInsertColumns, endInsertRows, endMoveColumns, endMoveRows, endRemoveColumns, endRemoveRows, endResetModel, hasIndex, headerDataChanged, insertColumn, insertRow, layoutAboutToBeChanged, layoutChanged, modelAboutToBeReset, modelReset, persistentIndexList, removeColumn, removeRow, resetInternalData, roleNames, rowsAboutToBeInserted, rowsAboutToBeMoved, rowsAboutToBeRemoved, rowsInserted, rowsMoved, rowsRemoved, sibling, supportedDragActions

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, 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.QtCore.QObject: staticMetaObject

Instance Variables [hide private]
 
shownRowTypesChanged(...)
Sets of global and sequence annotations respectively
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent=None)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

setSourceModel(self, model)

 
Overrides: PyQt4.QtGui.QAbstractProxyModel.setSourceModel

setShownRowTypes(self, row_types)

 

Allow only the specified annotations

Parameters:
  • row_types (iter) - An iterable containing the annotations to allow

getShownRowTypes(self)

 

Return a set of allowed annotation types

Returns: set
A set of annotation types. Note that the returned value is a copy of the attribute variable, so modifying it will not have any effect on this proxy.

setVisibilityForRowType(self, row_type, show=True)

 

Toggle visibility for the specified annotation

Parameters:
  • row_types (enum.Enum) - The annotations to adjust
  • show (bool) - Whether the annotation should be shown or hidden

setVisibilityForRowTypes(self, row_types, show=True)

 

Toggle visibility for the specified annotations

Parameters:
  • row_types (iter) - An iterable containing the annotations to adjust
  • show (bool) - Whether the annotations should be shown or hidden

invalidateFilter(self)

 

Emits sets of shown global and sequence level annotations respectively in addition to performing the default behavior.

See Qt documentation for additional method documentation

Overrides: PyQt4.QtGui.QSortFilterProxyModel.invalidateFilter

filterAcceptsRow(self, source_row, source_parent=None)

 
Overrides: PyQt4.QtGui.QSortFilterProxyModel.filterAcceptsRow

data(self, index, role=0)

 
Overrides: PyQt4.QtCore.QAbstractItemModel.data

columnCount(self, parent=None)

 
Overrides: PyQt4.QtCore.QAbstractItemModel.columnCount

filterAcceptsColumn(self, source_column, source_parent=None)

 
Overrides: PyQt4.QtGui.QSortFilterProxyModel.filterAcceptsColumn