-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathBioTrackerPlugin.h
More file actions
82 lines (67 loc) · 2.78 KB
/
BioTrackerPlugin.h
File metadata and controls
82 lines (67 loc) · 2.78 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
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
#ifndef BIOTRACKERPLUGIN_H
#define BIOTRACKERPLUGIN_H
#include "opencv2/core/core.hpp"
#include "Interfaces/IBioTrackerContext.h"
#include "Interfaces/IBioTrackerPlugin.h"
#include "QPointer"
#include "memory"
#include "QPoint"
#include "Config.h"
class Q_DECL_EXPORT BioTrackerPlugin : public IBioTrackerPlugin
{
Q_OBJECT
Q_INTERFACES(IBioTrackerPlugin)
Q_PLUGIN_METADATA(IID IBioTrackerPlugin_iid FILE "plugin.json")
public:
BioTrackerPlugin();
~BioTrackerPlugin();
// IBioTrackerPlugin interface
IView* getTrackerParameterWidget();
IView* getTrackerElementsWidget();
IModel* getTrackerComponentModel();
IModelTrackedComponentFactory* getComponentFactory();
public:
void init();
void sendCorePermissions();
private:
void connectInterfaces();
signals:
void emitAreaDescriptorUpdate(IModelAreaDescriptor* areaDescr);
void emitRemoveTrajectory(IModelTrackedTrajectory* trajectory);
void emitAddTrajectory(QPoint pos);
void emitRemoveTrajectoryId(int id);
void emitValidateTrajectory(int id);
void emitValidateEntity(IModelTrackedTrajectory* trajectory,
uint frameNumber);
void emitRemoveTrackEntity(IModelTrackedTrajectory* trajectory,
uint frameNumber);
void emitMoveElement(IModelTrackedTrajectory* trajectory,
uint frameNumber,
QPoint pos);
void emitSwapIds(IModelTrackedTrajectory* trajectory0,
IModelTrackedTrajectory* trajectory1);
void emitCurrentFrameNumber(uint frameNumber);
void emitToggleFixTrack(IModelTrackedTrajectory* trajectory, bool toggle);
void emitEntityRotation(IModelTrackedTrajectory* trajectory,
double angle,
uint frameNumber);
void emitDimensionUpdate(int x, int y);
public slots:
void receiveRemoveTrajectory(IModelTrackedTrajectory* trajectory);
void receiveAddTrajectory(QPoint pos);
void receiveSwapIds(IModelTrackedTrajectory* trajectory0,
IModelTrackedTrajectory* trajectory1);
void receiveCurrentFrameNumberFromMainApp(uint frameNumber);
public slots:
void receiveCurrentFrameFromMainApp(cv::Mat mat, uint frameNumber);
void receiveAreaDescriptor(IModelAreaDescriptor* areaDescr);
private:
IController* m_TrackerController;
IController* m_ComponentController;
IController* m_AreaDescrController;
IBioTrackerContext* m_PluginContext;
Config* _cfg;
public:
QList<ENUMS::COREPERMISSIONS> m_CorePermissions;
};
#endif // BIOTRACKERPLUGIN_H