49 lines
983 B
C++
49 lines
983 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <stdint.h>
|
|
#include "../cameras.h"
|
|
#include "cvimageviewer.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class MainWindow; }
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
std::vector<CvImageViewer*> viewers_;
|
|
|
|
private slots:
|
|
void setImageValue(size_t x, size_t y, double value);
|
|
void saveImage();
|
|
void openImage();
|
|
|
|
signals:
|
|
void sigCapture();
|
|
void sigProfile(QString profileName);
|
|
void sigChooseCameras();
|
|
void sigEditProfiles();
|
|
|
|
public slots:
|
|
|
|
void addCamera(std::shared_ptr<Camera> camera);
|
|
void refreshProfiles();
|
|
void profileInconpatible(QString message);
|
|
void removeCamera(std::shared_ptr<Camera> camera);
|
|
bool setProfile(const QString& profileName);
|
|
QString getProfileName();
|
|
void statusMsg(QString msg);
|
|
|
|
public:
|
|
MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
CvImageViewer* mainImageViewer();
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
};
|
|
#endif // MAINWINDOW_H
|