Home | Trees | Indices | Help |
|
---|
|
ViewerFramework.VFCommand.Command --+ | mvCommand.MVCommand --+ | ViewerFramework.VFCommand.ICOM --+ | | | mvCommand.MVICOM --+ | | | mvCommand.MVAtomICOM --+ | DisplayCommand
The DisplayCommand class is the base class from which all the display commands implemented for PMV will derive.It implements the general functionalities to display/undisplay parts of a geometry representing a molecule.
Package : Pmv
Module : displayCommands
Class : DisplayCommand
|
|||
| __init__(self, func=None) | ||
|
setLastUsedValues(self,
formName=None,
**kw) Special handling of display widget based on values of only and negate in self.lastUsedValues |
||
|
handleNegateOnly(self) return the values to be used for the display widget based on the negate and only values in self.lastUsedValues |
||
|
getLastUsedValues(self,
formName='default',
**kw) Return dictionary of last used values |
||
| handleDisplayValue(self, val) | ||
|
onAddCmdToViewer(self) method called when an instance of this command is added to the viewer. |
||
|
updateGeom(self,
event) Function to update geometry objects created by this command upon Modification events. |
||
|
getNodes(self,
nodes) expand nodes argument into a list of atoms sets and a list of molecules. |
||
|
buildFormDescr(self,
formName='default',
title=None) descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command. |
||
| getFormValues(self) | ||
|
guiCallback(self) Default callback function called by the gui |
||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|
|
|
|
|
|
Function to update geometry objects created by this command upon Modification events. This function is called by the the ViewerFramework.dispatchEvent command. The function will compute the a set of atoms by combining the atoms currently used to display the geometry (i.e. adding or substracting event.objects for action =='add' or 'delete', then execute this command for the set of atoms. event --- instance of a VFEvent object
|
expand nodes argument into a list of atoms sets and a list of molecules. This function is used to prevent the expansion operation to be done in both doit and setupUndoBefore The nodes.findType( Atom ) is the operation that is potentially expensive. |
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Nov 2 14:14:30 2007 | http://epydoc.sourceforge.net |