kalzium
Avogadro::BondCentricMoveCommand Class Reference
#include <bondcentrictool.h>
Inheritance diagram for Avogadro::BondCentricMoveCommand:

Detailed Description
An implementation of QUndoCommand used to undo bond centric manipulations.This class is an implementation of QUndoCommand that can be used to allow the two types of bond-centric manipulation to be undone. These two types of manipulation are:
- Adjusting bond length.
- Adjusting bond angles.
Definition at line 362 of file bondcentrictool.h.
Public Member Functions | |
| BondCentricMoveCommand (Molecule *molecule, Atom *atom, Eigen::Vector3d pos, QUndoCommand *parent=0) | |
| BondCentricMoveCommand (Molecule *molecule, QUndoCommand *parent=0) | |
| int | id () const |
| bool | mergeWith (const QUndoCommand *command) |
| void | redo () |
| void | undo () |
Constructor & Destructor Documentation
| Avogadro::BondCentricMoveCommand::BondCentricMoveCommand | ( | Molecule * | molecule, | |
| QUndoCommand * | parent = 0 | |||
| ) | [explicit] |
Constructor.
Creates an undo command.
- Parameters:
-
molecule The molecule to store for undoing. parent The parent undo command, or nothing.
Definition at line 1867 of file bondcentrictool.cpp.
| Avogadro::BondCentricMoveCommand::BondCentricMoveCommand | ( | Molecule * | molecule, | |
| Atom * | atom, | |||
| Eigen::Vector3d | pos, | |||
| QUndoCommand * | parent = 0 | |||
| ) |
Constructor.
Creates an undo command.
- Parameters:
-
molecule The molecule to store for undoing. atom The atom that has been moved. pos The new position of the atom. parent The parent undo command or null.
Definition at line 1881 of file bondcentrictool.cpp.
Member Function Documentation
| int Avogadro::BondCentricMoveCommand::id | ( | ) | const |
returns id of this undo command
- Returns:
- id of this undo command
Definition at line 1938 of file bondcentrictool.cpp.
| bool Avogadro::BondCentricMoveCommand::mergeWith | ( | const QUndoCommand * | command | ) |
returns if undo commands are merged together to one command.
- Parameters:
-
command undo command to merge
- Returns:
- false
Reimplemented from QUndoCommand.
Definition at line 1931 of file bondcentrictool.cpp.
| void Avogadro::BondCentricMoveCommand::redo | ( | ) |
| void Avogadro::BondCentricMoveCommand::undo | ( | ) |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference