ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
render_options_widget.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <QtCore>
11 #include <QtWidgets>
12 
13 #include "sfm/incremental_mapper.h"
14 #include "ui/model_viewer_widget.h"
15 #include "ui/options_widget.h"
16 
17 namespace colmap {
18 
20 public:
21  RenderOptionsWidget(QWidget* parent,
22  OptionManager* options,
23  ModelViewerWidget* model_viewer_widget);
24 
25  size_t counter;
27 
29 
30 private:
31  void closeEvent(QCloseEvent* event);
32 
33  void Apply();
34  void ApplyProjection();
35  void ApplyPointColormap();
36  void ApplyImageColormap();
37  void ApplyBackgroundColor();
38 
39  void SelectColor(const std::string& title, Eigen::Vector4f* color);
40  void SelectPointColormap(const int idx);
41  void SelectImageColormap(const int idx);
42 
43  void IncreasePointSize();
44  void DecreasePointSize();
45  void IncreaseCameraSize();
46  void DecreaseCameraSize();
47 
48  void ImageColormapNameFilterAddWord();
49  void ImageColormapNameFilterClearWords();
50 
51  OptionManager* options_;
52  ModelViewerWidget* model_viewer_widget_;
53 
54  Eigen::Vector4f background_color_;
55 
56  QComboBox* projection_cb_;
57 
58  QComboBox* point3D_colormap_cb_;
59 
60  double point3D_colormap_scale_;
61  double point3D_colormap_min_q_;
62  double point3D_colormap_max_q_;
63 
64  QComboBox* image_colormap_cb_;
65  QPushButton* select_image_plane_color_;
66  QPushButton* select_image_frame_color_;
67  QHBoxLayout* image_colormap_name_filter_layout_;
68  Eigen::Vector4f image_plane_color_;
69  Eigen::Vector4f image_frame_color_;
70  ImageColormapNameFilter image_colormap_name_filter_;
71 };
72 
73 } // namespace colmap
MouseEvent event
math::float4 color
RenderOptionsWidget(QWidget *parent, OptionManager *options, ModelViewerWidget *model_viewer_widget)