1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#ifndef CVVISUAL_RAWVIEW_GROUP_SUBTABLE_HPP
#define CVVISUAL_RAWVIEW_GROUP_SUBTABLE_HPP
#include <memory>
#include <set>
#include <vector>
#include <QWidget>
#include <QTableWidget>
#include <QAction>
#include <QItemSelection>
#include "../stfl/element_group.hpp"
#include "rawview_table_row.hpp"
#include "../util/util.hpp"
namespace cvv
{
namespace controller
{
class ViewController;
}
}
namespace cvv
{
namespace gui
{
class RawviewTable;
/**
* @brief A table for the a group of overview data sets.
*/
class RawviewGroupSubtable : public QWidget
{
Q_OBJECT
public:
/**
* @brief Constructs an over group subtable.
* @param controller view controller
* @param parent parent table
* @param group the displayed group of overview data sets
*/
RawviewGroupSubtable(RawviewTable *parent,
stfl::ElementGroup<RawviewTableRow> group);
/**
* @brief Updates the displayed table UI.
*/
void updateUI();
std::vector<cv::DMatch> getMatchSelection();
std::vector<cv::KeyPoint> getKeyPointSelection();
public slots:
void setMatchSelection(std::vector<cv::DMatch> matches);
void setKeyPointSelection(std::vector<cv::KeyPoint> keyPoints);
private slots:
void customMenuRequested(QPoint location);
void customMenuAction(QAction *action);
void selectionChanged();
private:
RawviewTable *parent;
stfl::ElementGroup<RawviewTableRow> group;
QTableWidget *qTable;
std::set<int> currentRowIndexes;
std::vector<RawviewTableRow> getSelectedRows();
void setSelectedRows(std::set<int> rowIndexes);
};
}
}
#endif