• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kalzium

Avogadro::BondCentricMoveCommand

Avogadro::BondCentricMoveCommand Class Reference

#include <bondcentrictool.h>

Inheritance diagram for Avogadro::BondCentricMoveCommand:

Inheritance graph
[legend]

List of all members.


Detailed Description

An implementation of QUndoCommand used to undo bond centric manipulations.

Author:
Shahzad Ali, Ross Braithwaite, James Bunt
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 (  ) 

Redo move.

Reimplemented from QUndoCommand.

Definition at line 1897 of file bondcentrictool.cpp.

void Avogadro::BondCentricMoveCommand::undo (  ) 

Undo move.

Reimplemented from QUndoCommand.

Definition at line 1920 of file bondcentrictool.cpp.


The documentation for this class was generated from the following files:
  • bondcentrictool.h
  • bondcentrictool.cpp

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal