Ignore:
Timestamp:
Feb 19, 2010, 11:49:54 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
01d28a
Parents:
5d4edf
Message:

Added a mechanism that allows the world to track changes done by the manipulators

Location:
molecuilder/src/Actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/ManipulateAtomsProcess.cpp

    r5d4edf r9ef76a  
    2323
    2424void ManipulateAtomsProcess::call(){
    25   World* world = World::get();
     25  World::get()->doManipulate(this);
     26}
     27
     28void ManipulateAtomsProcess::undo(){
     29
     30}
     31
     32bool ManipulateAtomsProcess::canUndo(){
     33  return false;
     34}
     35
     36void ManipulateAtomsProcess::doManipulate(World *world){
    2637  setMaxSteps(world->numAtoms());
    2738  start();
     
    3344  stop();
    3445}
    35 
    36 void ManipulateAtomsProcess::undo(){
    37 
    38 }
    39 
    40 bool ManipulateAtomsProcess::canUndo(){
    41   return false;
    42 }
  • molecuilder/src/Actions/ManipulateAtomsProcess.hpp

    r5d4edf r9ef76a  
    2121  virtual void undo();
    2222  virtual bool canUndo();
     23
     24  virtual void doManipulate(World *);
    2325private:
    2426  AtomDescriptor descr;
Note: See TracChangeset for help on using the changeset viewer.