Package Pmv :: Module deleteCommands
[hide private]
[frames] | no frames]

Module deleteCommands

source code


This Module implements commands to delete items from the MoleculeViewer:
for examples:
    Delete Molecule



Classes [hide private]
  DeleteMolecule
Command to delete a molecule from the MoleculeViewer Package : Pmv Module : deleteCommands Class : DeleteMolecule Command : deleteMolecule Synopsis: None<---deleteMol(nodes, **kw) Required Arguments: nodes --- TreeNodeSet holding the current selection It resets the undo stack automatically.
  DeleteAllMolecules
Command to delete all molecules from the MoleculeViewer Package : Pmv Module : deleteCommands Class : DeleteAllMolecules Command : deleteAllMolecules Synopsis: None<---deleteAllMolecules( **kw) Required Arguments: It resets the undo stack automatically.
  DeleteAtomSet
Command to remove an AtomSet from the MoleculeViewer Package : Pmv Module : deleteCommands Class : DeleteAtomSet Command : deleteAtomSet Synopsis: None<---deleteAtomSet(atoms, **kw) Required Arguments: atoms --- AtomSet to be deleted.
  DeleteHydrogens
Command to remove hydrogen atoms from the MoleculeViewer Package : Pmv Module : deleteCommands Class : DeleteHydrogens Command : deleteHydrogens Synopsis: None<---deleteAtomSet(atoms, **kw) Required Arguments: atoms --- AtomSet to be deleted.

Functions [hide private]
  initModule(viewer)

Variables [hide private]
  deleteMoleculeGuiDescr = {'index': 0, 'menuButtonName': 'Edit', 'widgetType':...
  DeleteMoleculeGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  deleteAllMoleculesGuiDescr = {'index': 0, 'menuButtonName': 'Edit', 'widgetType':...
  DeleteAllMoleculesGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  deleteAtomSetGuiDescr = {'menuBarName': 'menuRoot', 'menuCascadeName': 'Dele...
  DeleteAtomSetGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  deleteHydrogensGuiDescr = {'menuBarName': 'menuRoot', 'menuCascadeName': 'Dele...
  DeleteHydrogensGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  commandList = [{'gui': <ViewerFramework.VFCommand.CommandGUI insta...

Function Details [hide private]

initModule(viewer)

source code 
None

Variables Details [hide private]

deleteMoleculeGuiDescr

None
Value:
{'index': 0,
 'menuBarName': 'menuRoot',
 'menuButtonName': 'Edit',
 'menuCascadeName': 'Delete',
 'menuEntryLabel': 'Molecule',
 'widgetType': 'Menu'}                                                 
      

DeleteMoleculeGUI

None
Value:
<ViewerFramework.VFCommand.CommandGUI instance at 0xb6fcc5ac>          
      

deleteAllMoleculesGuiDescr

None
Value:
{'index': 0,
 'menuBarName': 'menuRoot',
 'menuButtonName': 'Edit',
 'menuCascadeName': 'Delete',
 'menuEntryLabel': 'AllMolecules',
 'widgetType': 'Menu'}                                                 
      

DeleteAllMoleculesGUI

None
Value:
<ViewerFramework.VFCommand.CommandGUI instance at 0xb6fcc84c>          
      

deleteAtomSetGuiDescr

None
Value:
{'menuBarName': 'menuRoot',
 'menuButtonName': 'Edit',
 'menuCascadeName': 'Delete',
 'menuEntryLabel': 'Delete AtomSet',
 'widgetType': 'Menu'}                                                 
      

DeleteAtomSetGUI

None
Value:
<ViewerFramework.VFCommand.CommandGUI instance at 0xb6fcc8cc>          
      

deleteHydrogensGuiDescr

None
Value:
{'menuBarName': 'menuRoot',
 'menuButtonName': 'Edit',
 'menuCascadeName': 'Delete',
 'menuEntryLabel': 'Delete Hydrogens',
 'widgetType': 'Menu'}                                                 
      

DeleteHydrogensGUI

None
Value:
<ViewerFramework.VFCommand.CommandGUI instance at 0xb6fcc94c>          
      

commandList

None
Value:
[{'cmd': self.,
  'gui': <ViewerFramework.VFCommand.CommandGUI instance at 0xb6fcc5ac>
,
  'name': 'deleteMol'},
 {'cmd': self.,
  'gui': <ViewerFramework.VFCommand.CommandGUI instance at 0xb6fcc84c>
,
  'name': 'deleteAllMolecules'},
...