Molecule Viewer
 All Classes Functions Variables Enumerations Pages
Public Member Functions | Protected Slots | List of all members
MainWindow Class Reference

The main window of the QT Viewer. More...

#include <MainWindow.hpp>

Inheritance diagram for MainWindow:

Public Member Functions

 MainWindow ()
 Creates the main window. More...
 
 ~MainWindow ()
 Deletes the main window.
 

Protected Slots

void on_actionLoad_Molecule_triggered ()
 Load Molecule.
 
void on_actionClose_triggered ()
 Close Window.
 
void PointIntensityChanged (const int changedValue)
 Change Point Light Intensity via Slider (value between 0 and 255).
 
void GlossinessChanged (const int changedValue)
 Change the Glossiness of the Atoms via Slider (value between 0 and 255).
 
void ShadowChanged (const int changedValue)
 Turn on/off Molecule Shadows via check box (value 0 or 1, on = 1).
 
void AmbientOcclusionChanged (const bool changedValue)
 Turn on/off Ambient Occlusion via Radio Button (on = true). More...
 
void AmbientIntensityChanged (const int changedValue)
 Change Ambient Light Intensity via Slider (value between 0 and 255).
 
void BorderWidthChanged (const int changedValue)
 Change the width of the atom border (value between 0 and 255).
 
void BorderVarianceChanged (const int changedValue)
 Change the depth awareness of the atom borders. More...
 
void PresetChanged (const QString changedValue)
 Set the variables to predefined values and apply the changes. More...
 
void SetSelections ()
 Adapt the user interface controls to the current variable values. More...
 
void ColorModeChanged (const QString changedValue)
 
void OcclusionQualityChanged (const int changedValue)
 

Detailed Description

The main window of the QT Viewer.

Contains a menu bar at the top, an OpenGL widget on the left and a Settings area on the right side.

Definition at line 18 of file MainWindow.hpp.

Constructor & Destructor Documentation

MainWindow::MainWindow ( )

Creates the main window.

Initializes User Interface, the Open GL context and the Molecule Viewer render object (AppMain)

Definition at line 16 of file MainWindow.cpp.

Member Function Documentation

void MainWindow::AmbientOcclusionChanged ( const bool  changedValue)
protectedslot

Turn on/off Ambient Occlusion via Radio Button (on = true).

If it is turned off, a constant value is used for the ambient lighting.

Definition at line 135 of file MainWindow.cpp.

void MainWindow::BorderVarianceChanged ( const int  changedValue)
protectedslot

Change the depth awareness of the atom borders.

-if the depth awareness is 0, the border width is equal for all atoms -if the depth awareness is increased, the width depends on the depth difference to next atom behind the current one

Definition at line 156 of file MainWindow.cpp.

void MainWindow::PresetChanged ( const QString  changedValue)
protectedslot

Set the variables to predefined values and apply the changes.

changedValue has to be a valid preset name:

  • Ambient Occlusion Only
  • Direct Lighting Only
  • Combined Lighting

Definition at line 190 of file MainWindow.cpp.

void MainWindow::SetSelections ( )
protectedslot

Adapt the user interface controls to the current variable values.

(e.g. when the glossiness value is 128, move the slider to the middle)

Definition at line 267 of file MainWindow.cpp.


The documentation for this class was generated from the following files: