-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleDependenciesPlugin.h
More file actions
60 lines (44 loc) · 1.47 KB
/
ExampleDependenciesPlugin.h
File metadata and controls
60 lines (44 loc) · 1.47 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
#pragma once
#include <AnalysisPlugin.h>
#include "SettingsAction.h"
using namespace mv::plugin;
using namespace mv;
/**
* Example dependencies plugin class
*
*
* @authors
*/
class ExampleDependenciesPlugin : public AnalysisPlugin
{
Q_OBJECT
public:
ExampleDependenciesPlugin(const PluginFactory* factory);
~ExampleDependenciesPlugin() override = default;
void init() override;
private:
void compute();
private:
SettingsAction _settingsAction; /** The place where settings are stored (more info in SettingsAction.h) */
};
/**
* Example analysis plugin factory class
*
* Note: Factory does not need to be altered (merely responsible for generating new plugins when requested)
*/
class ExampleDependenciesPluginFactory : public AnalysisPluginFactory
{
Q_INTERFACES(mv::plugin::AnalysisPluginFactory mv::plugin::PluginFactory)
Q_OBJECT
Q_PLUGIN_METADATA(IID "studio.manivault.ExampleDependenciesPlugin"
FILE "PluginInfo.json")
public:
/** Default constructor */
ExampleDependenciesPluginFactory();
/** Creates an instance of the example analysis plugin */
AnalysisPlugin* produce() override;
/** Returns the data types that are supported by the example analysis plugin */
mv::DataTypes supportedDataTypes() const override;
/** Enable right-click on data set to open analysis */
PluginTriggerActions getPluginTriggerActions(const mv::Datasets& datasets) const override;
};