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

Class MVSelectSetCommand

source code

ViewerFramework.VFCommand.Command --+    
                                    |    
                  mvCommand.MVCommand --+
                                        |
                                       MVSelectSetCommand

This Command is used to select the saved set.
    
Package : Pmv
    
Module  : selectionCommands
    
Class   : MVSelectSetCommand
    
Command : selectSet
    
Synopsis:

    None <- selectSet(setNames, only=False, negate=False)
    
Required Arguments:

        setNameStr---name
    
Optional Argumnets:

        only=negate=0:selected set is added to the selection
        
only=0,negate=1: selected set is removed from the selection
        
only=1,negate=0: selected set is the only thing selected



Instance Methods [hide private]
  onRemoveObjectFromViewer(self, mol)
  setupUndoBefore(self, name, negate=False, only=False)
This method builds the self.undoCmds string.
  doit(self, setNames, negate=False, only=False)
None <- selectSet(setNames, only=False, negate=False)
  guiCallback(self)
  __call__(self, setNames, negate=False, only=False, **kw)
None <- selectSet(setNames, only=0, negate=0)

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, onAddCmdToViewer, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, showForm, tkCb, updateGeom, warningMsg


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

onRemoveObjectFromViewer(self, mol)

source code 
None

setupUndoBefore(self, name, negate=False, only=False)

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)

doit(self, setNames, negate=False, only=False)

source code 

None <- selectSet(setNames, only=False, negate=False)

setNames can be a string or a list of strings

only=negate=0:selected set is added to the selection

only=0, negate=1: selected set is removed from the selection

only=1, negate=0: selected set is the only thing selected
Overrides: ViewerFramework.VFCommand.Command.doit

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback

__call__(self, setNames, negate=False, only=False, **kw)
(Call operator)

source code 

None <- selectSet(setNames, only=0, negate=0)

setNames can be a string or a list of strings

only=negate=0:selected set is added to the selection

only=0, negate=1: selected set is removed from the selection

only=1, negate=0: selected set is the only thing selected
Overrides: ViewerFramework.VFCommand.Command.__call__