17#include <QDoubleValidator>
38 lightAboveBox->toggle();
42 lightBelowBox->toggle();
47 QValidator* validator =
new QDoubleValidator(0, 100000, 2,
this);
48 superelevationLineEdit->setValidator(validator);
50 superelevationLineEdit->setText(
51 settings.value(
"globalSuperelevation", 1.0).toString());
52 cullBackfacesCheckBox->setCheckState(
53 Qt::CheckState(settings.value(
"globalCullBackfaces", 0).toInt()));
54 loadShowAllCheckBox->setCheckState(
55 Qt::CheckState(settings.value(
"resetViewOnLoad", 2).toInt()));
60 QColor bgColor(color.red(), color.green(), color.blue());
66 if (lightAboveBox->isChecked())
78 if (lightBelowBox->isChecked())
90 double factor = superelevationLineEdit->text().toDouble();
94 settings.setValue(
"globalSuperelevation", factor);
99 _visWidget.setShowAllOnLoad(
static_cast<bool>(state));
103 settings.setValue(
"resetViewOnLoad", state);
111 settings.setValue(
"globalCullBackfaces", state);
Definition of the VisPrefsDialog class.
Definition of the VtkVisPipeline class.
void on_bgColorButton_colorPicked(QColor color)
Sets the background colour.
VtkVisPipeline & _vtkVisPipeline
void on_superelevationPushButton_pressed()
Sets the given superelevation on all vis pipeline source objects.
void on_loadShowAllCheckBox_stateChanged(int state)
void on_lightAboveBox_clicked()
Adds a light above the scene.
VisPrefsDialog(VtkVisPipeline &pipeline, VisualizationWidget &widget, QDialog *parent=nullptr)
Constructor.
void on_cullBackfacesCheckBox_stateChanged(int state)
Culls backfacing rendering primitives on all actors.
void on_lightBelowBox_clicked()
Adds a light below the scene.
VisualizationWidget & _visWidget
VtkVisPipeline manages the VTK visualization. It is a TreeModel and provides functions for adding and...