ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
BundleAdjustmentWidget.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 "base/reconstruction.h"
14 #include "ui/options_widget.h"
15 #include "util/option_manager.h"
16 
17 namespace cloudViewer {
18 
22 
24 public:
26  OptionManager* options);
27 
28  void Show(colmap::Reconstruction* reconstruction);
29 
30 private:
31  void Run();
32  void Render();
33 
34  ReconstructionWidget* main_window_;
35  OptionManager* options_;
36  colmap::Reconstruction* reconstruction_;
37  ThreadControlWidget* thread_control_widget_;
38  QAction* render_action_;
39 };
40 
41 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
cloudViewer::BundleAdjustmentWidget::Show
void Show(colmap::Reconstruction *reconstruction)
Definition: BundleAdjustmentWidget.cpp:64
option_manager.h
cloudViewer::BundleAdjustmentController
colmap::BundleAdjustmentController BundleAdjustmentController
Definition: BundleAdjustmentWidget.cpp:17
colmap::OptionManager
Definition: option_manager.h:38
cloudViewer::ThreadControlWidget::StartThread
void StartThread(const QString &progress_text, const bool stoppable, colmap::Thread *thread)
Definition: ThreadControlWidget.cpp:34
colmap::BundleAdjustmentWidget::BundleAdjustmentWidget
BundleAdjustmentWidget(MainWindow *main_window, OptionManager *options)
Definition: bundle_adjustment_widget.cc:39
cloudViewer::BundleAdjustmentWidget::BundleAdjustmentWidget
BundleAdjustmentWidget(ReconstructionWidget *main_window, OptionManager *options)
Definition: BundleAdjustmentWidget.cpp:20
colmap::Thread::FINISHED_CALLBACK
@ FINISHED_CALLBACK
Definition: threading.h:78
cloudViewer::OptionManager
colmap::OptionManager OptionManager
Definition: BundleAdjustmentWidget.h:19
colmap::Thread
Definition: threading.h:74
cloudViewer::ThreadControlWidget
Definition: ThreadControlWidget.h:19
ReconstructionWidget.h
colmap::OptionsWidget::grid_layout_
QGridLayout * grid_layout_
Definition: options_widget.h:70
ThreadControlWidget.h
colmap::BundleAdjustmentController
Definition: bundle_adjustment.h:17
colmap::Reconstruction
Definition: reconstruction.h:40
colmap::Reconstruction::Normalize
void Normalize(const double extent=10.0, const double p0=0.1, const double p1=0.9, const bool use_images=true)
Definition: reconstruction.cc:347
bundle_adjustment.h
colmap::OptionsWidget::AddOptionBool
QCheckBox * AddOptionBool(bool *option, const std::string &label_text)
Definition: options_widget.cc:139
colmap::Thread::AddCallback
void AddCallback(const int id, const std::function< void()> &func)
Definition: threading.cc:117
colmap::OptionsWidget::AddOptionInt
QSpinBox * AddOptionInt(int *option, const std::string &label_text, const int min=0, const int max=static_cast< int >(1e7))
Definition: options_widget.cc:93
options_widget.h
reconstruction.h
colmap::OptionManager::bundle_adjustment
std::shared_ptr< BundleAdjustmentOptions > bundle_adjustment
Definition: option_manager.h:113
cloudViewer::ReconstructionWidget
Definition: ReconstructionWidget.h:45
colmap::OptionsWidget
Definition: options_widget.h:16
cloudViewer::BundleAdjustmentWidget
Definition: BundleAdjustmentWidget.h:23
colmap::OptionsWidget::WriteOptions
void WriteOptions()
Definition: options_widget.cc:242
colmap
Definition: AutomaticReconstructionController.h:17
BundleAdjustmentWidget.h
colmap::OptionsWidget::AddOptionDoubleLog
QDoubleSpinBox * AddOptionDoubleLog(double *option, const std::string &label_text, const double min=0, const double max=1e7, const double step=0.01, const int decimals=2)
Definition: options_widget.cc:123