Visual Computing Library  devel
Loading...
Searching...
No Matches
viewer_render_settings_frame.h
1/*****************************************************************************
2 * VCLib *
3 * Visual Computing Library *
4 * *
5 * Copyright(C) 2021-2026 *
6 * Visual Computing Lab *
7 * ISTI - Italian National Research Council *
8 * *
9 * All rights reserved. *
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the Mozilla Public License Version 2.0 as published *
13 * by the Mozilla Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * Mozilla Public License Version 2.0 *
20 * (https://www.mozilla.org/en-US/MPL/2.0/) for more details. *
21 ****************************************************************************/
22
23#ifndef VCL_QT_GUI_VIEWER_RENDER_SETTINGS_FRAME_H
24#define VCL_QT_GUI_VIEWER_RENDER_SETTINGS_FRAME_H
25
26#include <vclib/qt/mesh_viewer_render_app.h>
27#include <vclib/render/settings/pbr_viewer_settings.h>
28
29#include <QFrame>
30
31class QPushButton;
32
33namespace vcl::qt {
34
35namespace Ui {
36class ViewerRenderSettingsFrame;
37} // namespace Ui
38
39class ViewerRenderSettingsFrame : public QFrame
40{
42
43 enum class RenderMode { CLASSIC = 0, PBR = 1 };
44
45 Ui::ViewerRenderSettingsFrame* mUI;
46
47 MeshViewerRenderApp* mViewer;
48
49public:
50 explicit ViewerRenderSettingsFrame(QWidget* parent = nullptr);
52
53 void setViewer(MeshViewerRenderApp* viewer);
54
55 void setPbrSettings(const PBRViewerSettings& settings);
56
57 void setPanorama(const std::string& panorama);
58
59 const PBRViewerSettings& pbrSettings() const;
60
61private:
62 void disableForm();
63
64 void updatePanoramaLabel();
65
66private slots:
67 void renderModeComboBoxCurrentIndexChanged(int index);
68
69 void exposureSpinBoxValueChanged(double value);
70
71 void toneMappingComboBoxCurrentIndexChanged(int index);
72
73 void iblCheckBoxCheckStateChanged(Qt::CheckState state);
74
75 void drawBackgroundPanoramaCheckBoxCheckStateChanged(Qt::CheckState state);
76
77 void loadPanoramaPushButtonClicked();
78};
79
80} // namespace vcl::qt
81
82#endif // VCL_QT_GUI_VIEWER_RENDER_SETTINGS_FRAME_H
The RenderApp class is a template class that combines a canvas, a window manager, and a set of drawer...
Definition render_app.h:67
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:41
Definition viewer_render_settings_frame.h:40
Definition pbr_viewer_settings.h:31