#include <orbitalviewerbase.h>
It provides the functionality for OrbitalViewerWidget and manages both GLOrbitalView and OrbitalThread.
Definition at line 40 of file orbitalviewerbase.h.
Public Member Functions | |
OrbitalViewerBase (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0) | |
~OrbitalViewerBase () | |
The default destructor. | |
Protected Member Functions | |
void | customEvent (QCustomEvent *e) |
Handles custom events originating from calcThread. | |
Private Slots | |
void | update () |
Updates the view with the values of the widgets. | |
void | adjustL (int newN) |
Adjusts the value of the orbital quantum number L to lie in the region 1 - N-1. | |
void | adjustM (int newL) |
Adjusts the value of the angular momentum quantum number M to lie in the region -L - +L. | |
void | updateColors () |
Updates the colors for drawing the positive and negative phases of the orbitals. | |
void | updateTypeOptions (int type) |
Updates the options to correspond to the chosen type of visualisation. | |
void | cancelCalculation () |
Stops a running calculation. | |
Private Member Functions | |
void | finishCalculation () |
Cleans up after a calculation was finished. | |
Private Attributes | |
QHBoxLayout * | BigLayout |
All encompassing horizontal layout. | |
OrbitalOptionsWidget * | options |
Shows the options. | |
GLOrbitalView * | view |
Shows the orbital. | |
ColorButton * | ColorButtonPositive |
The pushbutton for choosing the colour of the positive values. | |
ColorButton * | ColorButtonNegative |
The pushbutton for choosing the colour of the negative values. | |
OrbitalThread * | calcThread |
The thread doing the calculation. | |
QTimer * | timer |
Handles periodic updating of the view during a calculation. |
|
Definition at line 60 of file orbitalviewerbase.cpp. |
|
The default destructor.
Definition at line 129 of file orbitalviewerbase.cpp. |
|
Handles custom events originating from calcThread.
Definition at line 148 of file orbitalviewerbase.cpp. |
|
Updates the view with the values of the widgets.
Definition at line 164 of file orbitalviewerbase.cpp. |
|
Adjusts the value of the orbital quantum number L to lie in the region 1 - N-1.
Definition at line 207 of file orbitalviewerbase.cpp. |
|
Adjusts the value of the angular momentum quantum number M to lie in the region -L - +L.
Definition at line 215 of file orbitalviewerbase.cpp. |
|
Updates the colors for drawing the positive and negative phases of the orbitals.
Definition at line 224 of file orbitalviewerbase.cpp. |
|
Updates the options to correspond to the chosen type of visualisation.
Definition at line 231 of file orbitalviewerbase.cpp. |
|
Stops a running calculation.
Definition at line 288 of file orbitalviewerbase.cpp. |
|
Cleans up after a calculation was finished.
Definition at line 302 of file orbitalviewerbase.cpp. |
|
All encompassing horizontal layout.
Definition at line 65 of file orbitalviewerbase.h. |
|
Shows the options.
Definition at line 66 of file orbitalviewerbase.h. |
|
Shows the orbital.
Definition at line 67 of file orbitalviewerbase.h. |
|
The pushbutton for choosing the colour of the positive values.
Definition at line 68 of file orbitalviewerbase.h. |
|
The pushbutton for choosing the colour of the negative values.
Definition at line 69 of file orbitalviewerbase.h. |
|
The thread doing the calculation.
Definition at line 70 of file orbitalviewerbase.h. |
|
Handles periodic updating of the view during a calculation.
Definition at line 71 of file orbitalviewerbase.h. |