Package Pmv :: Module setangleCommands :: Class SetQuaternion
[hide private]
[frames] | no frames]

Class SetQuaternion

source code

ViewerFramework.VFCommand.Command --+            
                                    |            
                  mvCommand.MVCommand --+        
                                        |        
       measureCommands.MeasureAtomCommand --+    
                                            |    
              measureCommands.MeasureDistance --+
                                                |
                                               SetQuaternion

Transform the coords by quaternion Set the coords of these atoms to the new values and return new coords

Instance Methods [hide private]
  __call__(self, ats, quat, origin=(0.,0.,0.), trans=(0.,0.,0.), **kw)
newCoords<-setTranslation(ats,quat, trans) quat in form (x,y,z,w) origin is (x,y,z) default is (0., 0., 0.) trans is (x,y,z) default is (0., 0., 0.) doesnot assume quat is already normalized
  hypotenuse(self, x, y, z)
  mkUnitQuat(self, quat)
  doit(self, ats, quat, origin, trans)

Inherited from measureCommands.MeasureAtomCommand: getTransformedCoords, vvmult

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, setupUndoBefore, showForm, tkCb, updateGeom, warningMsg


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

__call__(self, ats, quat, origin=(0.,0.,0.), trans=(0.,0.,0.), **kw)
(Call operator)

source code 
newCoords<-setTranslation(ats,quat, trans) quat in form (x,y,z,w) origin is (x,y,z) default is (0., 0., 0.) trans is (x,y,z) default is (0., 0., 0.) doesnot assume quat is already normalized
Overrides: measureCommands.MeasureDistance.__call__

hypotenuse(self, x, y, z)

source code 
None

mkUnitQuat(self, quat)

source code 
None

doit(self, ats, quat, origin, trans)

source code 
None
Overrides: measureCommands.MeasureDistance.doit