Package schrodinger :: Package application :: Package combiglide :: Module connection_storage :: Class ConnectionStorage
[hide private]
[frames] | no frames]

Class ConnectionStorage

       object --+                
                |                
sip.simplewrapper --+            
                    |            
          sip.wrapper --+        
                        |        
     PyQt4.QtCore.QObject --+    
                            |    
            Qt.QtCore.QObject --+
                                |
                               ConnectionStorage
Known Subclasses:

This class is used to store the data of the current connection table.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__iter__(self)
 
reset(self)
 
collectionChanged(self)
 
hasChanged(self)
 
changesSaved(self)
 
addPair(self, bp, name='', csize=0, minlink=0, maxlink=0, cfile=0, bondToH=False, selected=False)
Adds a bond pair to the list of bond pairs, and also creates a more or less empty data line for that data.
 
bondPair(self, a1, a2)
 
switchPair(self, bp, newbp=False)
 
changePair(self, oldbp, newbp)
 
deletePair(self, bp)
 
setData(self, bp, name, csize, minlink, maxlink, cfile, row, bondToH, selected)
 
setConnectionName(self, bp, cname)
 
setConnectionSize(self, bp, csize)
 
setConnectionMinLink(self, bp, minlink)
 
setConnectionMaxLink(self, bp, maxlink)
 
setConnectionFile(self, bp, cfile)
 
setRow(self, bp, row)
 
setSelected(self, bp, selected)
 
getConnectionName(self, bp)
 
getConnectionSize(self, bp)
 
getConnectionMinLink(self, bp)
 
getConnectionMaxLink(self, bp)
 
getConnectionFile(self, bp)
 
getRow(self, bp)
 
bondToH(self, bp)
 
getSelected(self, bp)
 
clearSelected(self)
 
size(self)
 
getPairFromRow(self, num)
 
getBondColorList(self)
 
containsMultipleCores(self)
list
getConnectionColor(self, i)
Return the appropriate connection color for the i-th connection
 
setIgnorePair(self, bp)
 
removeIgnorePair(self)
 
getBondList(self)
 
getBondListWithIgnored(self)
 
getAtomList(self)
 
getCompleteBondList(self)
 
getAtomColorList(self)

Inherited from Qt.QtCore.QObject: connect, emit

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, 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.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

addPair(self, bp, name='', csize=0, minlink=0, maxlink=0, cfile=0, bondToH=False, selected=False)

 

Adds a bond pair to the list of bond pairs, and also creates a more or less empty data line for that data. Data in array: [Attachment name, collection size, min linkers, max linkers, collection file, table row]

getConnectionColor(self, i)

 

Return the appropriate connection color for the i-th connection

Parameters:
  • i (int) - The connection number to get the color for
Returns: list
The appropriate color, formatted as a list of three integers between 0 and 255