Package Pmv :: Module mvCommand :: Class MVSetSelectionLevel
[hide private]
[frames] | no frames]

Class MVSetSelectionLevel

source code

ViewerFramework.VFCommand.Command --+    
                                    |    
                            MVCommand --+
                                        |
                                       MVSetSelectionLevel

Instance Methods [hide private]
  __init__(self)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  setupUndoBefore(self, Klass, KlassSet=None)
This method builds the self.undoCmds string.
  doit(self, Klass, KlassSet=None)
virtual method.
  Close_cb(self, event=None)
  guiCallback(self, event=None)
  setLevel_cb(self, event=None)
  __call__(self, Klass, KlassSet=None, **kw)
selectionLevel <- setSelectionLevel(Klass, KlassSet=None, **kw) set the current selection level and promotes current selection to this level
  buildForm(self)

Inherited from MVCommand: strArg

Inherited from 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]

__init__(self)
(Constructor)

source code 
None
Overrides: MVCommand.__init__

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)

setupUndoBefore(self, Klass, KlassSet=None)

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, Klass, KlassSet=None)

source code 
virtual method. Has to be implemented by the sub classes
Overrides: ViewerFramework.VFCommand.Command.doit
(inherited documentation)

Close_cb(self, event=None)

source code 
None

guiCallback(self, event=None)

source code 
None
Overrides: MVCommand.guiCallback

setLevel_cb(self, event=None)

source code 
None

__call__(self, Klass, KlassSet=None, **kw)
(Call operator)

source code 
selectionLevel <- setSelectionLevel(Klass, KlassSet=None, **kw) set the current selection level and promotes current selection to this level
Overrides: ViewerFramework.VFCommand.Command.__call__

buildForm(self)

source code 
None