/* * RotateAroundOriginByAngleAction.hpp * * Created on: Aug 06, 2010 * Author: heber */ #ifndef ROTATEAROUNDORIGINBYANGLEACTION_HPP #define ROTATEAROUNDORIGINBYANGLEACTION_HPP #include "Actions/Action.hpp" class Vector; void AtomRotateOrigin(Vector &Axis); class AtomRotateAroundOriginByAngleAction : public Action { friend void AtomRotateAroundOriginByAngle(const Vector &Axis, double angle); public: AtomRotateAroundOriginByAngleAction(); virtual ~AtomRotateAroundOriginByAngleAction(); bool canUndo(); bool shouldUndo(); virtual const std::string getName(); protected: virtual Dialog * fillDialog(Dialog *dialog); private: virtual Action::state_ptr performCall(); virtual Action::state_ptr performUndo(Action::state_ptr); virtual Action::state_ptr performRedo(Action::state_ptr); static const char NAME[]; }; #endif // ROTATEAROUNDORIGINBYANGLEACTION_HPP