Package ViewerFramework :: Module dejaVuCommands :: Class CenterScene
[hide private]
[frames] | no frames]

Class CenterScene

source code

VFCommand.Command --+
                    |
                   CenterScene

None <- centerScene() Command to scale and translate the scene to make it fit in the view frustum

Instance Methods [hide private]
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  doit_cb(self, name, old_value, new_value)
  doit(self, mode=None)
virtual method.

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

Inherited from VFCommand.Command (private): _strArg


Class Variables [hide private]

Inherited from 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: VFCommand.Command.onAddCmdToViewer
(inherited documentation)

doit_cb(self, name, old_value, new_value)

source code 
None

doit(self, mode=None)

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