Package Pmv :: Module editCommands :: Class MergeFieldsCommand
[hide private]
[frames] | no frames]

Class MergeFieldsCommand

source code

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

This class allows the user to change the fields of one set by the values 
of another set.
    
Package:Pmv
    
Module :editCommands
    
Class:MergeFieldsCommand
    
Command:mergeFields
    
Synopsis:

        None <- mergeFields(set1, set2, fieldList=[], negate=0, **kw)
    
Required Arguments:

        set1 --- field value of set1

        set2 --- field value of set1

    
Optional Arguments:

        fieldList --- fields of type Int or Float in a list, default is []

        negate --- flag when set to 1 undisplay the current selection, default is 0

Fields that are of type Int or Float can be added or subtracted.
Specified fields of the items in the first set are incremented or decremented
by those of the second set.

    



Instance Methods [hide private]
  __call__(self, set1, set2, fieldList=[], negate=False, **kw)
None <- mergeFields(set1, set2, fieldList=[], negate=0, **kw)
  doit(self, set1, set2, fieldList, **kw)
virtual method.
  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, onAddCmdToViewer, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, setupUndoBefore, showForm, tkCb, updateGeom, warningMsg


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

__call__(self, set1, set2, fieldList=[], negate=False, **kw)
(Call operator)

source code 

None <- mergeFields(set1, set2, fieldList=[], negate=0, **kw)

set1 --- field value of set1

set2 --- field value of set1

fieldList --- fields of type Int or Float in a list, default is []

negate --- flag when set to 1 undisplay the current selection, default is 0
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, set1, set2, fieldList, **kw)

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

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback