source: molecuilder/src/Actions/ManipulateAtomsProcess.hpp@ 7bfc19

Last change on this file since 7bfc19 was 9ef76a, checked in by Tillmann Crueger <crueger@…>, 16 years ago

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

  • Property mode set to 100644
File size: 695 bytes
Line 
1/*
2 * ManipulateAtomsProcess.hpp
3 *
4 * Created on: Feb 18, 2010
5 * Author: crueger
6 */
7
8#ifndef MANIPULATEATOMSPROCESS_HPP_
9#define MANIPULATEATOMSPROCESS_HPP_
10
11#include "Actions/Process.hpp"
12#include "Descriptors/AtomDescriptor.hpp"
13
14class ManipulateAtomsProcess : public Process
15{
16public:
17 ManipulateAtomsProcess(boost::function<void(atom*)> _operation, AtomDescriptor descr,std::string _name,bool _doRegister=true);
18 virtual ~ManipulateAtomsProcess();
19
20 virtual void call();
21 virtual void undo();
22 virtual bool canUndo();
23
24 virtual void doManipulate(World *);
25private:
26 AtomDescriptor descr;
27 boost::function<void(atom*)> operation;
28};
29
30#endif /* MANIPULATEATOMSPROCESS_HPP_ */
Note: See TracBrowser for help on using the repository browser.