Ignore:
Timestamp:
Apr 11, 2018, 6:29:56 AM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.6.1, Candidate_v1.7.0, Candidate_v1.7.1, ChemicalSpaceEvaluator, Gui_displays_atomic_force_velocity, PythonUI_with_named_parameters, TremoloParser_IncreasedPrecision, stable
Children:
8ac6d0e
Parents:
8450da
git-author:
Frederik Heber <frederik.heber@…> (08/08/17 21:26:57)
git-committer:
Frederik Heber <frederik.heber@…> (04/11/18 06:29:56)
Message:

Arrows display velocity and force of each atom.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/QtInfoBox.cpp

    r8450da r897a01  
    6565
    6666  setMinimumWidth(200);
    67   setMinimumHeight(220);
     67  setMinimumHeight(350);
    6868
    6969  connect(timer, SIGNAL(timeout()), this, SLOT(timerTimeout()));
     
    220220  addInfo(this, "Position y", QString(toString(atomRef->getAtomPosition()[1]).c_str()));
    221221  addInfo(this, "Position z", QString(toString(atomRef->getAtomPosition()[2]).c_str()));
     222  addInfo(this, "Velocity x", QString(toString(atomRef->getAtomVelocity()[0]).c_str()));
     223  addInfo(this, "Velocity y", QString(toString(atomRef->getAtomVelocity()[1]).c_str()));
     224  addInfo(this, "Velocity z", QString(toString(atomRef->getAtomVelocity()[2]).c_str()));
     225  addInfo(this, "Force x", QString(toString(atomRef->getAtomForce()[0]).c_str()));
     226  addInfo(this, "Force y", QString(toString(atomRef->getAtomForce()[1]).c_str()));
     227  addInfo(this, "Force z", QString(toString(atomRef->getAtomForce()[2]).c_str()));
    222228}
    223229
Note: See TracChangeset for help on using the changeset viewer.