-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathBioTrackerPlugin.h
More file actions
51 lines (36 loc) · 1.24 KB
/
BioTrackerPlugin.h
File metadata and controls
51 lines (36 loc) · 1.24 KB
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
#ifndef BIOTRACKERPLUGIN_H
#define BIOTRACKERPLUGIN_H
#include "biotrackerplugin_global.h"
#include "opencv2/core/core.hpp"
#include "Interfaces/IBioTrackerContext.h"
#include "Interfaces/IBioTrackerPlugin.h"
#include "QPointer"
#include "memory"
class BIOTRACKERPLUGINSHARED_EXPORT BioTrackerPlugin : public IBioTrackerPlugin {
Q_OBJECT
Q_PLUGIN_METADATA(IID "de.fu-berlin.mi.biorobotics.BioTrackerPlugin" FILE "BioTrackerPlugin.json")
Q_INTERFACES(IBioTrackerPlugin)
public:
BioTrackerPlugin();
// IBioTrackerPlugin interface
IView* getTrackerParameterWidget();
IView *getTrackerElementsWidget();
void setDataExporter(IModelDataExporter *exporter) { };
public:
void createPlugin();
void receiveCurrentFrameFromMainApp(std::shared_ptr<cv::Mat> mat, uint frameNumber);
private:
void connectInterfaces();
signals:
void emitCvMat(std::shared_ptr<cv::Mat> mat, QString name);
void emitTrackingDone();
void emitChangeDisplayImage(QString str);
private slots:
void receiveCvMatFromController(std::shared_ptr<cv::Mat> mat, QString name);
void receiveTrackingDone();
private:
IController *m_TrackerController;
IController *m_ComponentController;
IBioTrackerContext *m_PluginContext;
};
#endif // BIOTRACKERPLUGIN_H