Ignore:
Timestamp:
Aug 3, 2017, 10:46:48 AM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued
Children:
cee565
Parents:
fcc860
Message:

atom::removeStep() extended to removing interval of steps.

  • AtomInfo::removeTrajectorySteps() and BondedParticle::removeTrajectorySteps() changed and all calls adapted.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/UndoRedoHelpers.cpp

    rfcc860 r4919f0  
    219219}
    220220
    221 void MoleCuilder::removeLastStep(const std::vector<atomId_t> &_atoms, const unsigned int _step)
    222 {
    223   for (size_t i=0; i<_atoms.size(); ++i) {
    224     atom * const _atom = World::getInstance().getAtom(AtomById(_atoms[i]));
    225     _atom->removeStep(_step);
     221void MoleCuilder::removeSteps(
     222    const std::vector<atomId_t> &movedatoms,
     223    const unsigned int _firststep,
     224    const unsigned int _laststep)
     225{
     226  for (std::vector<atomId_t>::const_iterator iter = movedatoms.begin();
     227      iter != movedatoms.end(); ++iter) {
     228    atom * const _atom = World::getInstance().getAtom(AtomById(*iter));
     229    _atom->removeSteps(_firststep, _laststep);
    226230  }
    227231}
Note: See TracChangeset for help on using the changeset viewer.