OrbitalViewerBase Class Reference

#include <orbitalviewerbase.h>

List of all members.


Detailed Description

This class is a container for showing and manipulating views or orbitals.

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.
GLOrbitalViewview
 Shows the orbital.
ColorButtonColorButtonPositive
 The pushbutton for choosing the colour of the positive values.
ColorButtonColorButtonNegative
 The pushbutton for choosing the colour of the negative values.
OrbitalThreadcalcThread
 The thread doing the calculation.
QTimer * timer
 Handles periodic updating of the view during a calculation.


Constructor & Destructor Documentation

OrbitalViewerBase::OrbitalViewerBase QWidget *  parent = 0,
const char *  name = 0,
bool  modal = FALSE,
WFlags  fl = 0
 

Definition at line 60 of file orbitalviewerbase.cpp.

OrbitalViewerBase::~OrbitalViewerBase  ) 
 

The default destructor.

Definition at line 129 of file orbitalviewerbase.cpp.


Member Function Documentation

void OrbitalViewerBase::customEvent QCustomEvent *  e  )  [protected]
 

Handles custom events originating from calcThread.

Definition at line 148 of file orbitalviewerbase.cpp.

void OrbitalViewerBase::update  )  [private, slot]
 

Updates the view with the values of the widgets.

Definition at line 164 of file orbitalviewerbase.cpp.

void OrbitalViewerBase::adjustL int  newN  )  [private, slot]
 

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.

void OrbitalViewerBase::adjustM int  newL  )  [private, slot]
 

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.

void OrbitalViewerBase::updateColors  )  [private, slot]
 

Updates the colors for drawing the positive and negative phases of the orbitals.

Definition at line 224 of file orbitalviewerbase.cpp.

void OrbitalViewerBase::updateTypeOptions int  type  )  [private, slot]
 

Updates the options to correspond to the chosen type of visualisation.

Definition at line 231 of file orbitalviewerbase.cpp.

void OrbitalViewerBase::cancelCalculation  )  [private, slot]
 

Stops a running calculation.

Definition at line 288 of file orbitalviewerbase.cpp.

void OrbitalViewerBase::finishCalculation  )  [private]
 

Cleans up after a calculation was finished.

Definition at line 302 of file orbitalviewerbase.cpp.


Member Data Documentation

QHBoxLayout* OrbitalViewerBase::BigLayout [private]
 

All encompassing horizontal layout.

Definition at line 65 of file orbitalviewerbase.h.

OrbitalOptionsWidget* OrbitalViewerBase::options [private]
 

Shows the options.

Definition at line 66 of file orbitalviewerbase.h.

GLOrbitalView* OrbitalViewerBase::view [private]
 

Shows the orbital.

Definition at line 67 of file orbitalviewerbase.h.

ColorButton* OrbitalViewerBase::ColorButtonPositive [private]
 

The pushbutton for choosing the colour of the positive values.

Definition at line 68 of file orbitalviewerbase.h.

ColorButton* OrbitalViewerBase::ColorButtonNegative [private]
 

The pushbutton for choosing the colour of the negative values.

Definition at line 69 of file orbitalviewerbase.h.

OrbitalThread* OrbitalViewerBase::calcThread [private]
 

The thread doing the calculation.

Definition at line 70 of file orbitalviewerbase.h.

QTimer* OrbitalViewerBase::timer [private]
 

Handles periodic updating of the view during a calculation.

Definition at line 71 of file orbitalviewerbase.h.


Generated on Fri May 19 14:31:58 2006 for Brabosphere by  doxygen 1.4.6-NO