The main window of the QT Viewer. More...
#include <MainWindow.hpp>
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) |
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.
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.
|
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.
|
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.
|
protectedslot |
Set the variables to predefined values and apply the changes.
changedValue has to be a valid preset name:
Definition at line 190 of file MainWindow.cpp.
|
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.