-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageLoaderPlugin.h
More file actions
73 lines (58 loc) · 2.25 KB
/
ImageLoaderPlugin.h
File metadata and controls
73 lines (58 loc) · 2.25 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
#pragma once
#include "Common.h"
#include "ImageCollectionScanner.h"
#include "ImageCollectionsModel.h"
#include "ConversionAction.h"
#include <LoaderPlugin.h>
#include <PluginFactory.h>
using mv::plugin::LoaderPluginFactory;
using mv::plugin::LoaderPlugin;
/**
* Image loader plugin class
*
* This image loader plugin class provides functionality to load high-dimensional image data into HDPS
*
* @author Thomas Kroes
*/
class ImageLoaderPlugin : public LoaderPlugin
{
public:
ImageLoaderPlugin(const mv::plugin::PluginFactory* factory);
~ImageLoaderPlugin() override;
/** Initializes the plugin */
void init() override {};
/** Load high dimensional image data */
void loadData() Q_DECL_OVERRIDE;
ImageCollectionScanner& getImageCollectionScanner() { return _imageCollectionScanner; }
ImageCollectionsModel& getImageCollectionsModel() { return _imageCollectionsModel; }
ImageCollectionsModel::Filter& getImageCollectionsFilterModel() { return _imageCollectionsFilterModel; }
mv::gui::PluginTriggerPickerAction& getConversionPickerAction() { return _conversionPickerAction; }
QModelIndexList getSelectedRows() const;;
private:
ImageCollectionScanner _imageCollectionScanner; /** Image collection scanner */
ImageCollectionsModel _imageCollectionsModel; /** Image collections model */
ImageCollectionsModel::Filter _imageCollectionsFilterModel; /** Image collections filter model */
ConversionAction _conversionPickerAction; /** Conversion plugin trigger picker action */
friend class ImageCollection;
};
/**
* Image loader plugin factory class
* A factory for creating image loader plugin instances
*/
class ImageLoaderPluginFactory : public LoaderPluginFactory
{
Q_INTERFACES(mv::plugin::LoaderPluginFactory mv::plugin::PluginFactory)
Q_OBJECT
Q_PLUGIN_METADATA(IID "studio.manivault.ImageLoaderPlugin"
FILE "PluginInfo.json")
public:
/** Default constructor */
ImageLoaderPluginFactory();
/** Destructor */
~ImageLoaderPluginFactory() override {}
/**
* Produces the plugin
* @return Pointer to the produced plugin
*/
LoaderPlugin* produce() override;
};