OGS
|
A dialog window for settung up a visualisation preferences.
Definition at line 28 of file VisPrefsDialog.h.
#include <VisPrefsDialog.h>
Public Member Functions | |
VisPrefsDialog (VtkVisPipeline &pipeline, VisualizationWidget &widget, QDialog *parent=nullptr) | |
Constructor. | |
Protected Slots | |
void | on_bgColorButton_colorPicked (QColor color) |
Sets the background colour. | |
void | on_lightAboveBox_clicked () |
Adds a light above the scene. | |
void | on_lightBelowBox_clicked () |
Adds a light below the scene. | |
void | on_superelevationPushButton_pressed () |
Sets the given superelevation on all vis pipeline source objects. | |
void | on_loadShowAllCheckBox_stateChanged (int state) |
void | on_cullBackfacesCheckBox_stateChanged (int state) |
Culls backfacing rendering primitives on all actors. | |
Private Attributes | |
VtkVisPipeline & | _vtkVisPipeline |
VisualizationWidget & | _visWidget |
GeoLib::Point | _above |
GeoLib::Point | _below |
VisPrefsDialog::VisPrefsDialog | ( | VtkVisPipeline & | pipeline, |
VisualizationWidget & | widget, | ||
QDialog * | parent = nullptr ) |
Constructor.
Definition at line 26 of file VisPrefsDialog.cpp.
References _above, _below, _vtkVisPipeline, VtkVisPipeline::getBGColor(), and VtkVisPipeline::getLight().
|
protectedslot |
Sets the background colour.
Definition at line 58 of file VisPrefsDialog.cpp.
References _vtkVisPipeline, and VtkVisPipeline::setBGColor().
|
protectedslot |
Culls backfacing rendering primitives on all actors.
Definition at line 106 of file VisPrefsDialog.cpp.
References _vtkVisPipeline, and VtkVisPipeline::setGlobalBackfaceCulling().
|
protectedslot |
Adds a light above the scene.
Definition at line 64 of file VisPrefsDialog.cpp.
References _above, _vtkVisPipeline, VtkVisPipeline::addLight(), and VtkVisPipeline::removeLight().
|
protectedslot |
Adds a light below the scene.
Definition at line 76 of file VisPrefsDialog.cpp.
References _below, _vtkVisPipeline, VtkVisPipeline::addLight(), and VtkVisPipeline::removeLight().
|
protectedslot |
Definition at line 97 of file VisPrefsDialog.cpp.
References _visWidget, _vtkVisPipeline, VtkVisPipeline::resetCameraOnAddOrRemove(), and VisualizationWidget::setShowAllOnLoad().
|
protectedslot |
Sets the given superelevation on all vis pipeline source objects.
Definition at line 88 of file VisPrefsDialog.cpp.
References _vtkVisPipeline, and VtkVisPipeline::setGlobalSuperelevation().
|
private |
Definition at line 59 of file VisPrefsDialog.h.
Referenced by VisPrefsDialog(), and on_lightAboveBox_clicked().
|
private |
Definition at line 60 of file VisPrefsDialog.h.
Referenced by VisPrefsDialog(), and on_lightBelowBox_clicked().
|
private |
Definition at line 58 of file VisPrefsDialog.h.
Referenced by on_loadShowAllCheckBox_stateChanged().
|
private |
Definition at line 57 of file VisPrefsDialog.h.
Referenced by VisPrefsDialog(), on_bgColorButton_colorPicked(), on_cullBackfacesCheckBox_stateChanged(), on_lightAboveBox_clicked(), on_lightBelowBox_clicked(), on_loadShowAllCheckBox_stateChanged(), and on_superelevationPushButton_pressed().