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

Module selectionCommands

source code

Classes [hide private]
  MVSelectCommand
Class for modfying the current selection in a molecule Viewer.
  MVAddSelectCommand
This Command adds to the current selection Package : Pmv Module : selectionCommands Class : MVAddSelectCommand Command : addselect Synopsis: currentSelection <--- addselect(nodes, klass=None, **kw) Required Arguments: nodes --- TreeNodeSet holding the current selection klass --- if specified nodes are converted to a set of that type otherwise and selection level is set to Klass.
  MVXorSelectCommand
This Command xors the current selection Package : Pmv Module : selectionCommands Class : MVXorSelectCommand Command : xorselect Synopsis: currentSelection <--- xorselect(nodes, klass=None, **kw) Required Arguments: nodes --- TreeNodeSet holding the current selection klass --- if specified nodes are converted to a set of that type otherwise and selection level is set to Klass.
  MVDeSelectCommand
This Command deselects the current selection Package : Pmv Module : selectionCommands Class : MVDeSelectCommand Command : deselect Synopsis: currentSelection <--- deselect(nodes, klass=None, **kw) Required Arguments: nodes --- TreeNodeSet holding the current selection klass --- if specified nodes are converted to a set of that type otherwise and selection level is set to Klass.
  MVClearSelection
MVClearSelect implements method to clear the current selection.
  MVSaveSetCommand
Save a selection under a user specified name...
  MVCreateSetIfNeeded
create a set, but only if it does not already exist...
  MVSelectSetCommand
This Command is used to select the saved set.
  MVSelectFromStringCommand
molStr,chainStr,residueStr,atomStr Select items by typed-in strings: one for each level.
  MVDirectSelectCommand
This Command allows you to directly select from moleculelist,chainlist,setslist...
  MVSelectSphericalRegion
This Command selects nodes from a specified base within specified spherical region(s) Package : Pmv Module : selectionCommands Class : MVSelectSphericalRegion Command : selectInSphere Synopsis: None <- selectInSphere(centerList, radius, selList, **kw) Required Arguments: centerList --- specifies the centers of the selection spheres radius --- radius of the selection spheres selList --- specifies selection base (atoms to test) possible selList values are ['all'], a list of sets or a list of molecule names.
  MVInvertSelection
Inverts current selection.

Functions [hide private]
  initModule(viewer)

Variables [hide private]
  MVClearSelectionGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  sets__ = {}
  mvSaveSetCommandGuiDescr = {'menuBarName': 'menuRoot', 'menuButtonName': 'Selec...
  MVSaveSetCommandGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  mvSelectSetCommandGuiDescr = {'menuBarName': 'menuRoot', 'menuButtonName': 'Selec...
  MVSelectSetCommandGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  mvSelectFromStringCommandGuiDescr = {'separatorBelow': 1, 'menuBarName': 'menuRoot', 'me...
  MVSelectFromStringCommandGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  mvDirectSelectCommandGuiDescr = {'separatorBelow': 1, 'menuBarName': 'menuRoot', 'me...
  MVDirectSelectCommandGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  mvSelectSphericalRegionGuiDescr = {'menuBarName': 'menuRoot', 'menuButtonName': 'Selec...
  MVSelectSphericalRegionGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  mvInvertSelectionGuiDescr = {'separatorBelow': 1, 'menuBarName': 'menuRoot', 'me...
  MVInvertSelectionGUI = <ViewerFramework.VFCommand.CommandGUI instance at 0x...
  commandList = [{'gui': None, 'cmd': self., 'name': 'select'}, {'gu...

Function Details [hide private]

initModule(viewer)

source code 
None

Variables Details [hide private]

MVClearSelectionGUI

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

sets__

None
Value:
{}                                                                     
      

mvSaveSetCommandGuiDescr

None
Value:
{'menuBarName': 'menuRoot',
 'menuButtonName': 'Select',
 'menuEntryLabel': 'Save current selection as a set',
 'widgetType': 'Menu'}                                                 
      

MVSaveSetCommandGUI

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

mvSelectSetCommandGuiDescr

None
Value:
{'menuBarName': 'menuRoot',
 'menuButtonName': 'Select',
 'menuEntryLabel': 'Select a set',
 'widgetType': 'Menu'}                                                 
      

MVSelectSetCommandGUI

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

mvSelectFromStringCommandGuiDescr

None
Value:
{'menuBarName': 'menuRoot',
 'menuButtonName': 'Select',
 'menuEntryLabel': 'Select From String',
 'separatorBelow': 1,
 'widgetType': 'Menu'}                                                 
      

MVSelectFromStringCommandGUI

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

mvDirectSelectCommandGuiDescr

None
Value:
{'menuBarName': 'menuRoot',
 'menuButtonName': 'Select',
 'menuEntryLabel': 'Direct Select',
 'separatorBelow': 1,
 'widgetType': 'Menu'}                                                 
      

MVDirectSelectCommandGUI

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

mvSelectSphericalRegionGuiDescr

None
Value:
{'menuBarName': 'menuRoot',
 'menuButtonName': 'Select',
 'menuEntryLabel': 'SphericalRegion',
 'widgetType': 'Menu'}                                                 
      

MVSelectSphericalRegionGUI

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

mvInvertSelectionGuiDescr

None
Value:
{'menuBarName': 'menuRoot',
 'menuButtonName': 'Select',
 'menuEntryLabel': 'invert selection',
 'separatorBelow': 1,
 'widgetType': 'Menu'}                                                 
      

MVInvertSelectionGUI

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

commandList

None
Value:
[{'gui': None, 'cmd': self., 'name': 'select'},
 {'gui': None, 'cmd': self., 'name': 'deselect'},
 {'cmd': self.,
  'gui': <ViewerFramework.VFCommand.CommandGUI instance at 0xb6f5856c>
,
  'name': 'clearSelection'},
 {'cmd': self.,
  'gui': <ViewerFramework.VFCommand.CommandGUI instance at 0xb6f585cc>
...