iVS3D v2.0.0
Loading...
Searching...
No Matches
colmapviewwidget.h
1#ifndef LIB3D_OTS_UI_COLMAPWRAPPER_VIEWWIDGET_H
2#define LIB3D_OTS_UI_COLMAPWRAPPER_VIEWWIDGET_H
3
4// Std
5#include <map>
6#include <string>
7
8// Qt
9#include <QTreeWidget>
10#include <QWidget>
11
12#include "../colmapwrapper.h"
13
14namespace lib3d {
15namespace ots {
16namespace ui {
17namespace colmapwrapper {
18
19namespace Ui {
20class ViewWidget;
21class TreeItem;
22} // namespace Ui
23
29class ViewWidget : public QWidget
30{
31 Q_OBJECT
32
33 //--- METHOD DECLERATION ---//
34
35public:
36 explicit ViewWidget(ColmapWrapper *ipWrapper, QWidget *parent = 0);
38
39public slots:
40 void refreshJobQueue();
41 void refreshWorkerState();
42 void bumpJobUp(const ColmapWrapper::SJob &job);
43 void bumpJobDown(const ColmapWrapper::SJob &job);
44 void editJob(const ColmapWrapper::SJob &job);
45 void deleteJob(const ColmapWrapper::SJob &job);
46
47private slots:
48
49 void onClearHistoryClicked();
50
51 void onUpdateToDarkTheme();
52 void onUpdateToLightTheme();
53
54 void onOpenActionTriggered(const ColmapWrapper::EProductType iProdType, const QString iFilePath);
55
56 //--- MEMBER DECLERATION ---//
57
58private:
59 Ui::ViewWidget *ui;
60
63
64 std::map<std::string, QTreeWidgetItem *> projectsMap;
65
66 lib3d::ots::ui::ETheme mCurrentTheme;
67};
68
69} // namespace colmapwrapper
70} // namespace ui
71} // namespace ots
72} // namespace lib3d
73
74#endif // LIB3D_OTS_UI_COLMAPWRAPPER_VIEWWIDGET_H
Wrapperclass for integration of COLMAP.
Definition colmapwrapper.h:53
EProductType
Enum holding product types that can be processed with Agisoft Metashape.
Definition colmapwrapper.h:91
Class providing widget interaction with ColmapWrapper. Showing product work queue and finished produc...
Definition colmapviewwidget.h:30
lib3d::ots::ColmapWrapper * mpColmapWrapper
Member pointer to wrapper.
Definition colmapviewwidget.h:62
Struct holding information of a single job.
Definition colmapwrapper.h:111