GLOrbitalView Class Reference

#include <glorbitalview.h>

Inheritance diagram for GLOrbitalView:

GLView List of all members.

Detailed Description

This class shows an orbital in 3D using OpenGL.

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).


Constructor & Destructor Documentation

GLOrbitalView::GLOrbitalView QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 56 of file glorbitalview.cpp.

GLOrbitalView::~GLOrbitalView  ) 
 

The default destructor.

Definition at line 67 of file glorbitalview.cpp.


Member Function Documentation

void GLOrbitalView::updateColors QColor  pos,
QColor  neg
 

Updates the colors of the orbitals' phases.

Definition at line 74 of file glorbitalview.cpp.

std::vector< Point3D< float > > * GLOrbitalView::getCoordinates  ) 
 

Returns a pointer to the coords vector.

Definition at line 82 of file glorbitalview.cpp.

QMutex * GLOrbitalView::getMutex  ) 
 

Returns a pointer to the mutex used for accessing the coords vector.

Definition at line 89 of file glorbitalview.cpp.

void GLOrbitalView::setMaximumRadius const double  radius  ) 
 

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.

void GLOrbitalView::drawScene  )  [protected, virtual]
 

Implementation of the pure virtual GLView::drawScene().

Does the drawing of the OpenGL scene.

Implements GLView.

Definition at line 200 of file glorbitalview.cpp.

float GLOrbitalView::boundingSphereRadius  )  [protected, virtual]
 

Implementation of the pure virtual GLView::boundingSphereRadius().

Implements GLView.

Definition at line 338 of file glorbitalview.cpp.


Member Data Documentation

QColor GLOrbitalView::colorPositive [private]
 

The color of positive values.

Definition at line 64 of file glorbitalview.h.

QColor GLOrbitalView::colorNegative [private]
 

The color of negative values.

Definition at line 65 of file glorbitalview.h.

std::vector<Point3D<float> > GLOrbitalView::coords [private]
 

The coordinates including phases.

Definition at line 66 of file glorbitalview.h.

QMutex GLOrbitalView::mutex [private]
 

The mutex for accessing the coords vector.

Definition at line 67 of file glorbitalview.h.

float GLOrbitalView::maximumRadius [private]
 

The overall maximum radius (used by boundingSphereRadius).

Definition at line 68 of file glorbitalview.h.

float GLOrbitalView::scaleFactor [private]
 

A scaling factor used when maximumRadius exceeds the far z-value (100.0f).

Definition at line 69 of file glorbitalview.h.


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