6#include <QDoubleValidator>
27 lightAboveBox->toggle();
31 lightBelowBox->toggle();
36 QValidator* validator =
new QDoubleValidator(0, 100000, 2,
this);
37 superelevationLineEdit->setValidator(validator);
39 superelevationLineEdit->setText(
40 settings.value(
"globalSuperelevation", 1.0).toString());
41 cullBackfacesCheckBox->setCheckState(
42 Qt::CheckState(settings.value(
"globalCullBackfaces", 0).toInt()));
43 loadShowAllCheckBox->setCheckState(
44 Qt::CheckState(settings.value(
"resetViewOnLoad", 2).toInt()));
49 QColor bgColor(color.red(), color.green(), color.blue());
55 if (lightAboveBox->isChecked())
67 if (lightBelowBox->isChecked())
79 double factor = superelevationLineEdit->text().toDouble();
83 settings.setValue(
"globalSuperelevation", factor);
88 _visWidget.setShowAllOnLoad(
static_cast<bool>(state));
92 settings.setValue(
"resetViewOnLoad", state);
100 settings.setValue(
"globalCullBackfaces", state);
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...