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

Class MVSelectSphericalRegion

source code

ViewerFramework.VFCommand.Command --+    
                                    |    
                  mvCommand.MVCommand --+
                                        |
                                       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.
    



Instance Methods [hide private]
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  onAddObjectToViewer(self, obj)
  onRemoveObjectFromViewer(self, obj)
  getTransformedCoords(self, atom)
  setupUndoBefore(self, *args, **kw)
This method builds the self.undoCmds string.
  __call__(self, centerList, radius, selList, **kw)
None <- selectInSphere(centerList, radius, selList, **kw) 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.
  doit(self, centerList, radius, selList)
centerList, radius, selList
  drawSphere(self)
  stopSelection(self)
  buildForm(self)
  update_xyz(self, val)
  hide_xyz(self, event=None)
  repack_xyz(self, event=None)
  updateCenter(self, event=None)
  setCenter_cb(self, atoms)
  setRadius_cb(self, eventval)
  updateBase(self, event=None)
  select_cb(self, event=None)
  clear_cb(self, event=None)
  close_cb(self, event=None)
  guiCallback(self)

Inherited from mvCommand.MVCommand: __init__, strArg

Inherited from mvCommand.MVCommand (private): _strArg

Inherited from ViewerFramework.VFCommand.Command: __repr__, addCallbackAfter, addCallbackBefore, addUndoCall, afterDoit, beforeDoit, buildFormDescr, buildLogArgList, checkDependencies, cleanup, customizeGUI, doitWrapper, getArguments, getHelp, getLastUsedValues, getLogArgs, getValNamedArgs, log, logString, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, showForm, tkCb, updateGeom, warningMsg


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

onAddCmdToViewer(self)

source code 
method called when an instance of this command is added to the viewer. This enable viewer-addition time initializations
Overrides: ViewerFramework.VFCommand.Command.onAddCmdToViewer
(inherited documentation)

onAddObjectToViewer(self, obj)

source code 
None

onRemoveObjectFromViewer(self, obj)

source code 
None

getTransformedCoords(self, atom)

source code 
None

setupUndoBefore(self, *args, **kw)

source code 
This method builds the self.undoCmds string. This method should have the same signature than the __call__. When this string is executed it should undo the actions of this command. This string will be appended to the undoCmdStack list if the command is successfuly carried out. This method handles only commands with the negateKw. Other commands have to overwrite it.
Overrides: ViewerFramework.VFCommand.Command.setupUndoBefore
(inherited documentation)

__call__(self, centerList, radius, selList, **kw)
(Call operator)

source code 
None <- selectInSphere(centerList, radius, selList, **kw)
        
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. 
        

Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, centerList, radius, selList)

source code 
centerList, radius, selList
Overrides: ViewerFramework.VFCommand.Command.doit

drawSphere(self)

source code 
None

stopSelection(self)

source code 
None

buildForm(self)

source code 
None

update_xyz(self, val)

source code 
None

hide_xyz(self, event=None)

source code 
None

repack_xyz(self, event=None)

source code 
None

updateCenter(self, event=None)

source code 
None

setCenter_cb(self, atoms)

source code 
None

setRadius_cb(self, eventval)

source code 
None

updateBase(self, event=None)

source code 
None

select_cb(self, event=None)

source code 
None

clear_cb(self, event=None)

source code 
None

close_cb(self, event=None)

source code 
None

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback