Read@CVL
PageVisPlugin.h
Go to the documentation of this file.
1 /*******************************************************************************************************
2  PageVisPlugin.h
3 
4  nomacs is a fast and small image viewer with the capability of synchronizing multiple instances
5 
6  Copyright (C) 2011-2015 Markus Diem <markus@nomacs.org>
7 
8  This file is part of nomacs.
9 
10  nomacs is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  nomacs is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program. If not, see <http://www.gnu.org/licenses/>.
22 
23  *******************************************************************************************************/
24 
25 #pragma once
26 
27 #include "DkPluginInterface.h"
28 
29 namespace rdm {
30 
31 class PageVisPlugin : public QObject, nmc::DkViewPortInterface {
32  Q_OBJECT
33  Q_INTERFACES(nmc::DkViewPortInterface)
34  Q_PLUGIN_METADATA(IID "com.nomacs.ImageLounge.PageVisPlugin/3.0" FILE "PageVisPlugin.json")
35 
36 public:
37  PageVisPlugin(QObject* parent = 0);
39 
40  QString id() const override;
41  QImage image() const override;
42  bool hideHUD() const override { return false; }; // enable interaction with HUD
43 
44  virtual bool closesOnImageChange() const override;
45 
46  QSharedPointer<nmc::DkImageContainer> runPlugin(const QString &runID = QString(), QSharedPointer<nmc::DkImageContainer> imgC = QSharedPointer<nmc::DkImageContainer>()) const override;
47 
48  nmc::DkPluginViewPort* getViewPort();
49  void deleteViewPort();
50 
51 private:
52  nmc::DkPluginViewPort* mViewport = 0;
53 };
54 
55 };
QSharedPointer< nmc::DkImageContainer > runPlugin(const QString &runID=QString(), QSharedPointer< nmc::DkImageContainer > imgC=QSharedPointer< nmc::DkImageContainer >()) const override
Definition: PageVisPlugin.cpp:82
PageVisPlugin(QObject *parent=0)
Definition: PageVisPlugin.cpp:39
Definition: PageVisPlugin.h:31
nmc::DkPluginViewPort * getViewPort()
Definition: PageVisPlugin.cpp:97
void deleteViewPort()
Definition: PageVisPlugin.cpp:113
bool hideHUD() const override
Definition: PageVisPlugin.h:42
~PageVisPlugin()
Definition: PageVisPlugin.cpp:45
virtual bool closesOnImageChange() const override
Definition: PageVisPlugin.cpp:72
QImage image() const override
Definition: PageVisPlugin.cpp:67
Definition: BatchTest.cpp:45
QString id() const override
Definition: PageVisPlugin.cpp:58