Package Pmv :: Module interactiveCommands :: Class MVSetInteractiveCmd
[hide private]
[frames] | no frames]

Class MVSetInteractiveCmd

source code

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

Instance Methods [hide private]
  getLevelName(self, level)
  setupUndoBefore(self, cmd, modifier=None)
This method builds the self.undoCmds string.
  doit(self, cmd, modifier=None)
virtual method.
  __call__(self, cmd, modifier=None, **kw)
None <- setICOM(cmd, modifier, **kw) cmd: command modifier: name of the modifier ('Shift_L', 'Control_L', 'Alt_L' ...)
  command_cb(self, val)
  level_cb(self, val)

Inherited from mvCommand.MVCommand: __init__, guiCallback, 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]

getLevelName(self, level)

source code 
None

setupUndoBefore(self, cmd, modifier=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, cmd, modifier=None)

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

__call__(self, cmd, modifier=None, **kw)
(Call operator)

source code 
None <- setICOM(cmd, modifier, **kw) cmd: command modifier: name of the modifier ('Shift_L', 'Control_L', 'Alt_L' ...)
Overrides: ViewerFramework.VFCommand.Command.__call__

command_cb(self, val)

source code 
None

level_cb(self, val)

source code 
None