Package Pmv :: Module trajectoryCommands :: Class PlayTrajectoryCommand
[hide private]
[frames] | no frames]

Class PlayTrajectoryCommand

source code

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

This class allows the user to select/read a trajectory and a corresponding molecule. It invokes TrajPlayer interface to play selected trajectory

Instance Methods [hide private]
  __init__(self)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  onAddObjectToViewer(self, obj)
  openTrajFile_cb(self)
opens a trajectory file (curenly .trr, .xtc)
  getTrajectory(self, trajFile, ask=True)
creates a Trajectory object, uses its parser to read the trajectory file, adds created Trajectory object to self.vf.Trajectories dictionary
  __call__(self, mol, trajName, **kw)
None<-GetTrajectory(mol, trajName) Looks for the trajectory in self.vf.Trajectories and pops up the trajectory player GUI.
  buildFormDescr(self, formName)
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command.
  guiCallback(self)
Default callback function called by the gui
  getMol_cb(self, trajname)
callback of the Pmw.ComboBox (trajectory selection)
  playTraj(self)
  dismiss_cb(self)
Withdraws the GUI.
  doit(self, molname, tname)
virtual method.

Inherited from mvCommand.MVCommand: strArg

Inherited from mvCommand.MVCommand (private): _strArg

Inherited from ViewerFramework.VFCommand.Command: __repr__, addCallbackAfter, addCallbackBefore, addUndoCall, afterDoit, beforeDoit, buildLogArgList, checkDependencies, cleanup, customizeGUI, doitWrapper, getArguments, getHelp, getLastUsedValues, getLogArgs, getValNamedArgs, log, logString, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, setupUndoBefore, 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.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)

onAddObjectToViewer(self, obj)

source code 
None

openTrajFile_cb(self)

source code 
opens a trajectory file (curenly .trr, .xtc)

getTrajectory(self, trajFile, ask=True)

source code 
creates a Trajectory object, uses its parser to read the trajectory file, adds created Trajectory object to self.vf.Trajectories dictionary

__call__(self, mol, trajName, **kw)
(Call operator)

source code 
None<-GetTrajectory(mol, trajName) Looks for the trajectory in self.vf.Trajectories and pops up the trajectory player GUI.
Overrides: ViewerFramework.VFCommand.Command.__call__

buildFormDescr(self, formName)

source code 
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command. This is where the inputFormDescr is created and the description of the widgets appended. If a command has several inputForm buildFormDescr should build all the inputFormDescr and you do a if / elif check to know which one to create. formName : string name of the form corresponding to this descr.
Overrides: ViewerFramework.VFCommand.Command.buildFormDescr
(inherited documentation)

guiCallback(self)

source code 
Default callback function called by the gui
Overrides: mvCommand.MVCommand.guiCallback

getMol_cb(self, trajname)

source code 
callback of the Pmw.ComboBox (trajectory selection)

playTraj(self)

source code 
None

dismiss_cb(self)

source code 
Withdraws the GUI.

doit(self, molname, tname)

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