#include <glorbitalview.h>
Inheritance diagram for GLOrbitalView:
It uses a thread to do the necessary computations and is based on GLView for basic OpenGL functionality.
Definition at line 40 of file glorbitalview.h.
Public Member Functions | |
GLOrbitalView (QWidget *parent=0, const char *name=0) | |
~GLOrbitalView () | |
The default destructor. | |
void | updateColors (QColor pos, QColor neg) |
Updates the colors of the orbitals' phases. | |
std::vector< Point3D< float > > * | getCoordinates () |
Returns a pointer to the coords vector. | |
QMutex * | getMutex () |
Returns a pointer to the mutex used for accessing the coords vector. | |
void | setMaximumRadius (const double radius) |
Sets the maximum radius of the coordinates. | |
Protected Member Functions | |
void | drawScene () |
Implementation of the pure virtual GLView::drawScene(). | |
float | boundingSphereRadius () |
Implementation of the pure virtual GLView::boundingSphereRadius(). | |
Private Attributes | |
QColor | colorPositive |
The color of positive values. | |
QColor | colorNegative |
The color of negative values. | |
std::vector< Point3D< float > > | coords |
The coordinates including phases. | |
QMutex | mutex |
The mutex for accessing the coords vector. | |
float | maximumRadius |
The overall maximum radius (used by boundingSphereRadius). | |
float | scaleFactor |
A scaling factor used when maximumRadius exceeds the far z-value (100.0f). |
|
Definition at line 56 of file glorbitalview.cpp. |
|
The default destructor.
Definition at line 67 of file glorbitalview.cpp. |
|
Updates the colors of the orbitals' phases.
Definition at line 74 of file glorbitalview.cpp. |
|
Returns a pointer to the coords vector.
Definition at line 82 of file glorbitalview.cpp. |
|
Returns a pointer to the mutex used for accessing the coords vector.
Definition at line 89 of file glorbitalview.cpp. |
|
Sets the maximum radius of the coordinates. Don't calculate it here from the coordinates because it can be a lot of points, now it's calculated in a separate thread and this thread uses polar coordinates. Definition at line 96 of file glorbitalview.cpp. |
|
Implementation of the pure virtual GLView::drawScene(). Does the drawing of the OpenGL scene. Implements GLView. Definition at line 200 of file glorbitalview.cpp. |
|
Implementation of the pure virtual GLView::boundingSphereRadius().
Implements GLView. Definition at line 338 of file glorbitalview.cpp. |
|
The color of positive values.
Definition at line 64 of file glorbitalview.h. |
|
The color of negative values.
Definition at line 65 of file glorbitalview.h. |
|
The coordinates including phases.
Definition at line 66 of file glorbitalview.h. |
|
The mutex for accessing the coords vector.
Definition at line 67 of file glorbitalview.h. |
|
The overall maximum radius (used by boundingSphereRadius).
Definition at line 68 of file glorbitalview.h. |
|
A scaling factor used when maximumRadius exceeds the far z-value (100.0f).
Definition at line 69 of file glorbitalview.h. |