The QAlgorithm class is a QT wrapper for Algorithm. More...
#include <qalgorithm.h>
Public Slots | |
| void | run () |
| runs the Algorithm algs and emits the signal finished() once algs is done. | |
| void | stop () |
| stops the Algorithm algs. | |
Signals | |
| void | finished () |
| finished signal emited to begin the process of terminating the visualization and simulation. | |
Public Member Functions | |
| QAlgorithm (Algorithm *a, QObject *parent=0) | |
| QAlgorithm constructor calls the QObject constructor on its parent if it has one. It also initializes the Algorithm it is to interact with to the one given. More... | |
| void | setAlgorithm (Algorithm *a) |
| setAlgorithm setter for the Algorithm it is wrapping and interacting with. More... | |
| Algorithm * | getAlgorithm () |
| getAlgorithm getter for Algorithm currently wrapping. More... | |
| std::vector< Particle * > | getParticles () |
| getParticles getter for the list of Particle's in the environment, which the Algorithm algs knows about. More... | |
| Particle * | getCenterOfGravity () |
| getCenterOfGravity getter for the Particle that represetns the center of gravity, which the Algorithm algs knows about. More... | |
| double | getSystemKE () |
| getSystemKE goes to the Algorithm algs to get the system kinetic energy. More... | |
| double | getSystemPE () |
| getSystemPE goes to the Algorithm algs to get the system potential energy. More... | |
The QAlgorithm class is a QT wrapper for Algorithm.
It provides an interface for the visualization related (Q*) components to interact with the non-visualization related components.
|
explicit |
QAlgorithm constructor calls the QObject constructor on its parent if it has one. It also initializes the Algorithm it is to interact with to the one given.
| a | Algorithm to wrap and interact with. |
| parent | QObject parent if there is one. |
| Algorithm * QAlgorithm::getAlgorithm | ( | ) |
| Particle * QAlgorithm::getCenterOfGravity | ( | ) |
| std::vector< Particle * > QAlgorithm::getParticles | ( | ) |
| double QAlgorithm::getSystemKE | ( | ) |
| double QAlgorithm::getSystemPE | ( | ) |
| void QAlgorithm::setAlgorithm | ( | Algorithm * | a | ) |
1.8.6