From 3e3da4e9f9942f2e82b1aff017eaa0bf4034cb5b Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 16:58:50 +0100 Subject: [PATCH 01/12] Set meta data for example view plugin --- ExampleView/src/ExampleViewPlugin.cpp | 22 +++++++++++++++++----- ExampleView/src/ExampleViewPlugin.h | 6 +++--- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/ExampleView/src/ExampleViewPlugin.cpp b/ExampleView/src/ExampleViewPlugin.cpp index 57fec71..3434d3e 100644 --- a/ExampleView/src/ExampleViewPlugin.cpp +++ b/ExampleView/src/ExampleViewPlugin.cpp @@ -24,11 +24,6 @@ ExampleViewPlugin::ExampleViewPlugin(const PluginFactory* factory) : // Align text in the center _currentDatasetNameLabel->setAlignment(Qt::AlignCenter); - getLearningCenterAction().setPluginTitle("Example view"); - - getLearningCenterAction().setShortDescription("Example view plugin"); - getLearningCenterAction().setLongDescription("This plugin shows how to implement a basic view plugin in ManiVault."); - getLearningCenterAction().addVideos(QStringList({ "Practitioner", "Developer" })); } @@ -188,6 +183,23 @@ void ExampleViewPlugin::onDataEvent(mv::DatasetEvent* dataEvent) } } +ExampleViewPluginFactory::~ExampleViewPluginFactory() +{ + getPluginMetadata().setDescription("Example view plugin"); + getPluginMetadata().setSummary("This example plugin shows how to implement a basic view plugin in ManiVault."); + getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); + getPluginMetadata().setAuthors({ + { "T. Kroes", "Lead software architect", "", { "LUMC" } }, + { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } }, + { "J.Thijssen", "Software architect", "", { "LUMC", "TU Delft" } } + }); + getPluginMetadata().setOrganizations({ + { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, + { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } + }); + getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); +} + ViewPlugin* ExampleViewPluginFactory::produce() { return new ExampleViewPlugin(this); diff --git a/ExampleView/src/ExampleViewPlugin.h b/ExampleView/src/ExampleViewPlugin.h index 84dcd33..086fd40 100644 --- a/ExampleView/src/ExampleViewPlugin.h +++ b/ExampleView/src/ExampleViewPlugin.h @@ -60,7 +60,7 @@ class ExampleViewPlugin : public ViewPlugin protected: DropWidget* _dropWidget; /** Widget for drag and drop behavior */ - mv::Dataset _points; /** Points smart pointer */ + mv::Dataset _points; /** Points smart pointer */ QString _currentDatasetName; /** Name of the current dataset */ QLabel* _currentDatasetNameLabel; /** Label that show the current dataset name */ }; @@ -83,8 +83,8 @@ class ExampleViewPluginFactory : public ViewPluginFactory ExampleViewPluginFactory() {} /** Destructor */ - ~ExampleViewPluginFactory() override {} - + ~ExampleViewPluginFactory() override; + /** Creates an instance of the example view plugin */ ViewPlugin* produce() override; From 59d2e38b49d949faec18f5e55d9889065c73c612 Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 17:01:33 +0100 Subject: [PATCH 02/12] Set meta data for example view JS plugin --- ExampleViewJS/src/ExampleViewJSPlugin.cpp | 22 +++++++++++++++++----- ExampleViewJS/src/ExampleViewJSPlugin.h | 4 ++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/ExampleViewJS/src/ExampleViewJSPlugin.cpp b/ExampleViewJS/src/ExampleViewJSPlugin.cpp index a79fab9..1fdd074 100644 --- a/ExampleViewJS/src/ExampleViewJSPlugin.cpp +++ b/ExampleViewJS/src/ExampleViewJSPlugin.cpp @@ -25,11 +25,6 @@ ExampleViewJSPlugin::ExampleViewJSPlugin(const PluginFactory* factory) : _dropWidget(nullptr), _currentDataSet(nullptr) { - getLearningCenterAction().setPluginTitle("Example Javascript view"); - - getLearningCenterAction().setShortDescription("Example Javascript view plugin"); - getLearningCenterAction().setLongDescription("This plugin shows how to implement a basic Javascript-based view plugin in ManiVault."); - getLearningCenterAction().addVideos(QStringList({ "Practitioner", "Developer" })); } @@ -234,6 +229,23 @@ void ExampleViewJSPlugin::createData() // Plugin Factory // ============================================================================= +ExampleViewJSPluginFactory::~ExampleViewJSPluginFactory() +{ + getPluginMetadata().setDescription("Example Javascript view plugin"); + getPluginMetadata().setSummary("This plugin shows how to implement a basic Javascript-based view plugin in ManiVault."); + getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); + getPluginMetadata().setAuthors({ + { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } }, + { "J.Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, + { "T. Kroes", "Lead software architect", "", { "LUMC" } } + }); + getPluginMetadata().setOrganizations({ + { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, + { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } + }); + getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); +} + QIcon ExampleViewJSPluginFactory::getIcon(const QColor& color /*= Qt::black*/) const { return mv::Application::getIconFont("FontAwesome").getIcon("bullseye", color); diff --git a/ExampleViewJS/src/ExampleViewJSPlugin.h b/ExampleViewJS/src/ExampleViewJSPlugin.h index 172a94c..2280e7c 100644 --- a/ExampleViewJS/src/ExampleViewJSPlugin.h +++ b/ExampleViewJS/src/ExampleViewJSPlugin.h @@ -92,8 +92,8 @@ class ExampleViewJSPluginFactory : public ViewPluginFactory ExampleViewJSPluginFactory() {} /** Destructor */ - ~ExampleViewJSPluginFactory() override {} - + ~ExampleViewJSPluginFactory() override; + /** Get plugin icon */ QIcon getIcon(const QColor& color = Qt::black) const override; From fde341afd17bccdb82a95af651b9b1ab6ea5cc3b Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 17:04:05 +0100 Subject: [PATCH 03/12] Set meta data for example view GL plugin --- ExampleViewJS/src/ExampleViewJSPlugin.cpp | 4 ++-- ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp | 24 +++++++++++++------ ExampleViewOpenGL/src/ExampleViewGLPlugin.h | 2 +- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/ExampleViewJS/src/ExampleViewJSPlugin.cpp b/ExampleViewJS/src/ExampleViewJSPlugin.cpp index 1fdd074..3874540 100644 --- a/ExampleViewJS/src/ExampleViewJSPlugin.cpp +++ b/ExampleViewJS/src/ExampleViewJSPlugin.cpp @@ -229,7 +229,7 @@ void ExampleViewJSPlugin::createData() // Plugin Factory // ============================================================================= -ExampleViewJSPluginFactory::~ExampleViewJSPluginFactory() +ExampleViewJSPluginFactory::ExampleViewJSPluginFactory() { getPluginMetadata().setDescription("Example Javascript view plugin"); getPluginMetadata().setSummary("This plugin shows how to implement a basic Javascript-based view plugin in ManiVault."); @@ -238,7 +238,7 @@ ExampleViewJSPluginFactory::~ExampleViewJSPluginFactory() { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } }, { "J.Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, { "T. Kroes", "Lead software architect", "", { "LUMC" } } - }); + }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } diff --git a/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp b/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp index d4f1a2b..d2ea336 100644 --- a/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp +++ b/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp @@ -112,11 +112,6 @@ ExampleViewGLPlugin::ExampleViewGLPlugin(const PluginFactory* factory) : // Create data so that we do not need to load any in this example createData(); - getLearningCenterAction().setPluginTitle("Example OpenGL view"); - - getLearningCenterAction().setShortDescription("Example OpenGL view plugin"); - getLearningCenterAction().setLongDescription("This plugin shows how to implement a basic OpenGL-based view plugin in ManiVault."); - getLearningCenterAction().addVideos(QStringList({ "Practitioner", "Developer" })); } @@ -237,12 +232,27 @@ ViewPlugin* ExampleViewGLPluginFactory::produce() } ExampleViewGLPluginFactory::ExampleViewGLPluginFactory() : - ViewPluginFactory(), _statusBarAction(nullptr), _statusBarPopupGroupAction(this, "Popup Group"), _statusBarPopupAction(this, "Popup") { - + getLearningCenterAction().setPluginTitle(""); + getLearningCenterAction().setShortDescription("Example OpenGL view plugin"); + getLearningCenterAction().setLongDescription(""); + + getPluginMetadata().setDescription("Example OpenGL view"); + getPluginMetadata().setSummary("This example plugin shows how to implement a basic OpenGL-based view plugin in ManiVault."); + getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); + getPluginMetadata().setAuthors({ + { "J.Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, + { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } }, + { "T. Kroes", "Lead software architect", "", { "LUMC" } } + }); + getPluginMetadata().setOrganizations({ + { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, + { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } + }); + getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); } void ExampleViewGLPluginFactory::initialize() diff --git a/ExampleViewOpenGL/src/ExampleViewGLPlugin.h b/ExampleViewOpenGL/src/ExampleViewGLPlugin.h index 838d047..85c8178 100644 --- a/ExampleViewOpenGL/src/ExampleViewGLPlugin.h +++ b/ExampleViewOpenGL/src/ExampleViewGLPlugin.h @@ -92,7 +92,7 @@ class ExampleViewGLPluginFactory : public ViewPluginFactory ExampleViewGLPluginFactory(); /** Destructor */ - ~ExampleViewGLPluginFactory() override {} + ~ExampleViewGLPluginFactory() override; /** Perform post-construction initialization */ void initialize() override; From 7ed9db59606051e6dc1c1b3a12db1103e6c2cdc4 Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 17:08:22 +0100 Subject: [PATCH 04/12] Set meta data for example analysis plugin --- ExampleAnalysis/src/ExampleAnalysisPlugin.cpp | 22 +++++++++++++++---- ExampleAnalysis/src/ExampleAnalysisPlugin.h | 5 +---- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp b/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp index 6fa4cf8..11f9387 100644 --- a/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp +++ b/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp @@ -25,10 +25,7 @@ std::uint32_t ExampleAnalysisPlugin::Point::numberOfDimensions = 7; float ExampleAnalysisPlugin::Point::maximumVelocity = 1.0f; ExampleAnalysisPlugin::ExampleAnalysisPlugin(const PluginFactory* factory) : - AnalysisPlugin(factory), - _settingsAction(), - _points(), - _pointHeadings() + AnalysisPlugin(factory) { } @@ -229,6 +226,23 @@ void ExampleAnalysisPlugin::onDataEvent(mv::DatasetEvent* dataEvent) } } +ExampleAnalysisPluginFactory::ExampleAnalysisPluginFactory() +{ + getPluginMetadata().setDescription("Example analysis plugin"); + getPluginMetadata().setSummary("This example shows how to implement a basic analysis plugin in ManiVault Studio."); + getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); + getPluginMetadata().setAuthors({ + { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, + { "T. Kroes", "Lead software architect", "", { "LUMC" } }, + { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + }); + getPluginMetadata().setOrganizations({ + { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, + { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } + }); + getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); +} + AnalysisPlugin* ExampleAnalysisPluginFactory::produce() { // Return a new instance of the example analysis plugin diff --git a/ExampleAnalysis/src/ExampleAnalysisPlugin.h b/ExampleAnalysis/src/ExampleAnalysisPlugin.h index 5168ad1..d024f87 100644 --- a/ExampleAnalysis/src/ExampleAnalysisPlugin.h +++ b/ExampleAnalysis/src/ExampleAnalysisPlugin.h @@ -155,10 +155,7 @@ class ExampleAnalysisPluginFactory : public AnalysisPluginFactory public: /** Default constructor */ - ExampleAnalysisPluginFactory() {} - - /** Destructor */ - ~ExampleAnalysisPluginFactory() override {} + ExampleAnalysisPluginFactory(); /** Creates an instance of the example analysis plugin */ AnalysisPlugin* produce() override; From e9cd4c410095511fb781ea5ca8bac04fb3e78eec Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 17:09:52 +0100 Subject: [PATCH 05/12] Set meta data for example data plugin --- ExampleData/src/ExampleDataPlugin.cpp | 17 +++++++++++++++++ ExampleData/src/ExampleDataPlugin.h | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ExampleData/src/ExampleDataPlugin.cpp b/ExampleData/src/ExampleDataPlugin.cpp index 12fe890..321a82c 100644 --- a/ExampleData/src/ExampleDataPlugin.cpp +++ b/ExampleData/src/ExampleDataPlugin.cpp @@ -153,6 +153,23 @@ void PixelSet::selectInvert() events().notifyDatasetDataSelectionChanged(this); } +ExampleDataPluginFactory::ExampleDataPluginFactory() +{ + getPluginMetadata().setDescription("Example data plugin"); + getPluginMetadata().setSummary("This example shows how to implement a basic data plugin in ManiVault Studio."); + getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); + getPluginMetadata().setAuthors({ + { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, + { "T. Kroes", "Lead software architect", "", { "LUMC" } }, + { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + }); + getPluginMetadata().setOrganizations({ + { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, + { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } + }); + getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); +} + QIcon ExampleDataPluginFactory::getIcon(const QColor& color /*= Qt::black*/) const { return Application::getIconFont("FontAwesome").getIcon("database", color); diff --git a/ExampleData/src/ExampleDataPlugin.h b/ExampleData/src/ExampleDataPlugin.h index a66d001..08fd493 100644 --- a/ExampleData/src/ExampleDataPlugin.h +++ b/ExampleData/src/ExampleDataPlugin.h @@ -120,8 +120,7 @@ class ExampleDataPluginFactory : public RawDataFactory FILE "ExampleDataPlugin.json") public: - ExampleDataPluginFactory() {} - ~ExampleDataPluginFactory() override {} + ExampleDataPluginFactory(); /** * Get plugin icon From 7b866282f91ae8670d073357f6a58e68e8d1d340 Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 17:12:02 +0100 Subject: [PATCH 06/12] Set meta data for example dependencies plugin --- .../src/ExampleDependenciesPlugin.cpp | 22 +++++++++++++++---- .../src/ExampleDependenciesPlugin.h | 5 +---- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/ExampleDependencies/src/ExampleDependenciesPlugin.cpp b/ExampleDependencies/src/ExampleDependenciesPlugin.cpp index aa39081..52e6533 100644 --- a/ExampleDependencies/src/ExampleDependenciesPlugin.cpp +++ b/ExampleDependencies/src/ExampleDependenciesPlugin.cpp @@ -27,8 +27,7 @@ using namespace mv; using namespace mv::plugin; ExampleDependenciesPlugin::ExampleDependenciesPlugin(const PluginFactory* factory) : - AnalysisPlugin(factory), - _settingsAction() + AnalysisPlugin(factory) { } @@ -136,9 +135,24 @@ void ExampleDependenciesPlugin::compute() std::cout << "ExampleDependenciesPlugin: Finished." << std::endl; } +ExampleDependenciesPluginFactory::ExampleDependenciesPluginFactory() +{ + getPluginMetadata().setDescription("Example dependencies plugin"); + getPluginMetadata().setSummary("This example shows how to work with plugin dependencies in ManiVault Studio."); + getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); + getPluginMetadata().setAuthors({ + { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + }); + getPluginMetadata().setOrganizations({ + { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, + { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } + }); + getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); +} + AnalysisPlugin* ExampleDependenciesPluginFactory::produce() { - // Return a new instance of the example analysis plugin + // Return a new instance of the example dependencies plugin return new ExampleDependenciesPlugin(this); } @@ -146,7 +160,7 @@ mv::DataTypes ExampleDependenciesPluginFactory::supportedDataTypes() const { DataTypes supportedTypes; - // This example analysis plugin is compatible with points datasets + // This example dependencies plugin is compatible with points datasets supportedTypes.append(PointType); return supportedTypes; diff --git a/ExampleDependencies/src/ExampleDependenciesPlugin.h b/ExampleDependencies/src/ExampleDependenciesPlugin.h index acb72e0..2c0e3eb 100644 --- a/ExampleDependencies/src/ExampleDependenciesPlugin.h +++ b/ExampleDependencies/src/ExampleDependenciesPlugin.h @@ -47,10 +47,7 @@ class ExampleDependenciesPluginFactory : public AnalysisPluginFactory public: /** Default constructor */ - ExampleDependenciesPluginFactory() {} - - /** Destructor */ - ~ExampleDependenciesPluginFactory() override {} + ExampleDependenciesPluginFactory(); /** Creates an instance of the example analysis plugin */ AnalysisPlugin* produce() override; From 4714bceece226cefaa9da88eedbc04f15bf848f1 Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 17:13:31 +0100 Subject: [PATCH 07/12] Set meta data for example loader plugin --- ExampleLoader/src/ExampleLoaderPlugin.cpp | 17 +++++++++++++++++ ExampleLoader/src/ExampleLoaderPlugin.h | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ExampleLoader/src/ExampleLoaderPlugin.cpp b/ExampleLoader/src/ExampleLoaderPlugin.cpp index 670aa34..e76ac00 100644 --- a/ExampleLoader/src/ExampleLoaderPlugin.cpp +++ b/ExampleLoader/src/ExampleLoaderPlugin.cpp @@ -72,6 +72,23 @@ void ExampleLoaderPlugin::loadData() qDebug() << "Example file loaded. Num data points: " << points->getNumPoints(); } +ExampleLoaderPluginFactory::ExampleLoaderPluginFactory() +{ + getPluginMetadata().setDescription("Example loader plugin"); + getPluginMetadata().setSummary("This example shows how to implement a data loader plugin in ManiVault Studio."); + getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); + getPluginMetadata().setAuthors({ + { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, + { "T. Kroes", "Lead software architect", "", { "LUMC" } }, + { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + }); + getPluginMetadata().setOrganizations({ + { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, + { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } + }); + getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); +} + ExampleLoaderPlugin* ExampleLoaderPluginFactory::produce() { return new ExampleLoaderPlugin(this); diff --git a/ExampleLoader/src/ExampleLoaderPlugin.h b/ExampleLoader/src/ExampleLoaderPlugin.h index 080deea..90a1ab3 100644 --- a/ExampleLoader/src/ExampleLoaderPlugin.h +++ b/ExampleLoader/src/ExampleLoaderPlugin.h @@ -36,8 +36,7 @@ class ExampleLoaderPluginFactory : public LoaderPluginFactory FILE "ExampleLoaderPlugin.json") public: - ExampleLoaderPluginFactory(void) {} - ~ExampleLoaderPluginFactory(void) override {} + ExampleLoaderPluginFactory(); ExampleLoaderPlugin* produce() override; From 110149666f60f811f8c73d014c9f6bbe63f0a21a Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 17:14:58 +0100 Subject: [PATCH 08/12] Set meta data for example transformation plugin --- .../src/ExampleTransformationPlugin.cpp | 17 +++++++++++++++++ .../src/ExampleTransformationPlugin.h | 5 +---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ExampleTransformation/src/ExampleTransformationPlugin.cpp b/ExampleTransformation/src/ExampleTransformationPlugin.cpp index 389ddaf..4bda0bc 100644 --- a/ExampleTransformation/src/ExampleTransformationPlugin.cpp +++ b/ExampleTransformation/src/ExampleTransformationPlugin.cpp @@ -121,6 +121,23 @@ QString ExampleTransformationPlugin::getTypeName(const Type& type) return types[type]; } +ExampleTransformationPluginFactory::ExampleTransformationPluginFactory() +{ + getPluginMetadata().setDescription("Example transformation plugin"); + getPluginMetadata().setSummary("This example shows how to implement a basic data transformation plugin in ManiVault Studio."); + getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); + getPluginMetadata().setAuthors({ + { "T. Kroes", "Lead software architect", "", { "LUMC" } }, + { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, + { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + }); + getPluginMetadata().setOrganizations({ + { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, + { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } + }); + getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); +} + ExampleTransformationPlugin* ExampleTransformationPluginFactory::produce() { // Return a new instance of the example transformation plugin diff --git a/ExampleTransformation/src/ExampleTransformationPlugin.h b/ExampleTransformation/src/ExampleTransformationPlugin.h index 79f5d31..56036a1 100644 --- a/ExampleTransformation/src/ExampleTransformationPlugin.h +++ b/ExampleTransformation/src/ExampleTransformationPlugin.h @@ -95,10 +95,7 @@ class ExampleTransformationPluginFactory : public TransformationPluginFactory public: /** Default constructor */ - ExampleTransformationPluginFactory() {} - - /** Destructor */ - ~ExampleTransformationPluginFactory() override {} + ExampleTransformationPluginFactory(); /** Creates an instance of the example transform plugin */ ExampleTransformationPlugin* produce() override; From 5d3854727ef1d6ac13403a1fdb2f4d5109838821 Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 17:18:34 +0100 Subject: [PATCH 09/12] Set meta data for example writer plugin --- ExampleWriter/src/ExampleWriterPlugin.cpp | 17 +++++++++++++++++ ExampleWriter/src/ExampleWriterPlugin.h | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ExampleWriter/src/ExampleWriterPlugin.cpp b/ExampleWriter/src/ExampleWriterPlugin.cpp index a0745ec..bba6aca 100644 --- a/ExampleWriter/src/ExampleWriterPlugin.cpp +++ b/ExampleWriter/src/ExampleWriterPlugin.cpp @@ -66,6 +66,23 @@ void ExampleWriterPlugin::writeData() } } +ExampleWriterPluginFactory::ExampleWriterPluginFactory() +{ + getPluginMetadata().setDescription("Example writer plugin"); + getPluginMetadata().setSummary("This example shows how to implement a basic data writer plugin in ManiVault Studio."); + getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); + getPluginMetadata().setAuthors({ + { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } }, + { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, + { "T. Kroes", "Lead software architect", "", { "LUMC" } } + }); + getPluginMetadata().setOrganizations({ + { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, + { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } + }); + getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); +} + ExampleWriterPlugin* ExampleWriterPluginFactory::produce() { return new ExampleWriterPlugin(this); diff --git a/ExampleWriter/src/ExampleWriterPlugin.h b/ExampleWriter/src/ExampleWriterPlugin.h index 683242c..1811d40 100644 --- a/ExampleWriter/src/ExampleWriterPlugin.h +++ b/ExampleWriter/src/ExampleWriterPlugin.h @@ -37,8 +37,7 @@ class ExampleWriterPluginFactory : public WriterPluginFactory FILE "ExampleWriterPlugin.json") public: - ExampleWriterPluginFactory(void) {} - ~ExampleWriterPluginFactory(void) override {} + ExampleWriterPluginFactory() {} /** Creates an instance of the example writer plugin */ ExampleWriterPlugin* produce() override; From 3d8be0e0059fd77b1d7128ed94d7f04d57e1a399 Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Thu, 16 Jan 2025 17:58:55 +0100 Subject: [PATCH 10/12] Support author roles --- ExampleAnalysis/src/ExampleAnalysisPlugin.cpp | 8 ++++---- ExampleDependencies/src/ExampleDependenciesPlugin.cpp | 2 +- ExampleLoader/src/ExampleLoaderPlugin.cpp | 8 ++++---- ExampleTransformation/src/ExampleTransformationPlugin.cpp | 6 +++--- ExampleViewOpenGL/src/ExampleViewGLPlugin.h | 3 --- ExampleWriter/src/ExampleWriterPlugin.cpp | 6 +++--- ExampleWriter/src/ExampleWriterPlugin.h | 2 +- 7 files changed, 16 insertions(+), 19 deletions(-) diff --git a/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp b/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp index 11f9387..d0953f7 100644 --- a/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp +++ b/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp @@ -232,14 +232,14 @@ ExampleAnalysisPluginFactory::ExampleAnalysisPluginFactory() getPluginMetadata().setSummary("This example shows how to implement a basic analysis plugin in ManiVault Studio."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, - { "T. Kroes", "Lead software architect", "", { "LUMC" } }, - { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } }, + { "T. Kroes", { "Lead software architect" }, { "LUMC" } }, + { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } } }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } - }); + }); getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); } diff --git a/ExampleDependencies/src/ExampleDependenciesPlugin.cpp b/ExampleDependencies/src/ExampleDependenciesPlugin.cpp index 52e6533..3242f30 100644 --- a/ExampleDependencies/src/ExampleDependenciesPlugin.cpp +++ b/ExampleDependencies/src/ExampleDependenciesPlugin.cpp @@ -141,7 +141,7 @@ ExampleDependenciesPluginFactory::ExampleDependenciesPluginFactory() getPluginMetadata().setSummary("This example shows how to work with plugin dependencies in ManiVault Studio."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } } }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, diff --git a/ExampleLoader/src/ExampleLoaderPlugin.cpp b/ExampleLoader/src/ExampleLoaderPlugin.cpp index e76ac00..795f593 100644 --- a/ExampleLoader/src/ExampleLoaderPlugin.cpp +++ b/ExampleLoader/src/ExampleLoaderPlugin.cpp @@ -78,14 +78,14 @@ ExampleLoaderPluginFactory::ExampleLoaderPluginFactory() getPluginMetadata().setSummary("This example shows how to implement a data loader plugin in ManiVault Studio."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, - { "T. Kroes", "Lead software architect", "", { "LUMC" } }, - { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } }, + { "T. Kroes", { "Lead software architect" }, { "LUMC" } }, + { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } } }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } - }); + }); getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license."); } diff --git a/ExampleTransformation/src/ExampleTransformationPlugin.cpp b/ExampleTransformation/src/ExampleTransformationPlugin.cpp index 4bda0bc..e490c58 100644 --- a/ExampleTransformation/src/ExampleTransformationPlugin.cpp +++ b/ExampleTransformation/src/ExampleTransformationPlugin.cpp @@ -127,9 +127,9 @@ ExampleTransformationPluginFactory::ExampleTransformationPluginFactory() getPluginMetadata().setSummary("This example shows how to implement a basic data transformation plugin in ManiVault Studio."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "T. Kroes", "Lead software architect", "", { "LUMC" } }, - { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, - { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + { "T. Kroes", { "Lead software architect" }, { "LUMC" } }, + { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } }, + { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } } }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, diff --git a/ExampleViewOpenGL/src/ExampleViewGLPlugin.h b/ExampleViewOpenGL/src/ExampleViewGLPlugin.h index 85c8178..492e21a 100644 --- a/ExampleViewOpenGL/src/ExampleViewGLPlugin.h +++ b/ExampleViewOpenGL/src/ExampleViewGLPlugin.h @@ -91,9 +91,6 @@ class ExampleViewGLPluginFactory : public ViewPluginFactory /** Default constructor */ ExampleViewGLPluginFactory(); - /** Destructor */ - ~ExampleViewGLPluginFactory() override; - /** Perform post-construction initialization */ void initialize() override; diff --git a/ExampleWriter/src/ExampleWriterPlugin.cpp b/ExampleWriter/src/ExampleWriterPlugin.cpp index bba6aca..a7a448f 100644 --- a/ExampleWriter/src/ExampleWriterPlugin.cpp +++ b/ExampleWriter/src/ExampleWriterPlugin.cpp @@ -72,9 +72,9 @@ ExampleWriterPluginFactory::ExampleWriterPluginFactory() getPluginMetadata().setSummary("This example shows how to implement a basic data writer plugin in ManiVault Studio."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } }, - { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, - { "T. Kroes", "Lead software architect", "", { "LUMC" } } + { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } }, + { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } }, + { "T. Kroes", { "Lead software architect" }, { "LUMC" } } }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, diff --git a/ExampleWriter/src/ExampleWriterPlugin.h b/ExampleWriter/src/ExampleWriterPlugin.h index 1811d40..d2b404b 100644 --- a/ExampleWriter/src/ExampleWriterPlugin.h +++ b/ExampleWriter/src/ExampleWriterPlugin.h @@ -37,7 +37,7 @@ class ExampleWriterPluginFactory : public WriterPluginFactory FILE "ExampleWriterPlugin.json") public: - ExampleWriterPluginFactory() {} + ExampleWriterPluginFactory(); /** Creates an instance of the example writer plugin */ ExampleWriterPlugin* produce() override; From 666df49f288ecb13c079a3bfae734494c0eddbd2 Mon Sep 17 00:00:00 2001 From: Alexander Vieth Date: Fri, 17 Jan 2025 11:28:14 +0100 Subject: [PATCH 11/12] Fix compilation --- ExampleAnalysis/src/ExampleAnalysisPlugin.cpp | 4 ++++ ExampleData/src/ExampleDataPlugin.cpp | 10 +++++++--- .../src/ExampleDependenciesPlugin.cpp | 4 ++++ .../src/ExampleTransformationPlugin.cpp | 4 ++++ ExampleView/src/ExampleViewPlugin.cpp | 12 ++++++++---- ExampleView/src/ExampleViewPlugin.h | 5 +---- ExampleViewJS/src/ExampleViewJSPlugin.cpp | 10 +++++----- ExampleViewJS/src/ExampleViewJSPlugin.h | 7 ++----- ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp | 12 ++++-------- ExampleWriter/src/ExampleWriterPlugin.cpp | 4 ++++ 10 files changed, 43 insertions(+), 29 deletions(-) diff --git a/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp b/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp index d0953f7..b2be2d0 100644 --- a/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp +++ b/ExampleAnalysis/src/ExampleAnalysisPlugin.cpp @@ -226,6 +226,10 @@ void ExampleAnalysisPlugin::onDataEvent(mv::DatasetEvent* dataEvent) } } +// ============================================================================= +// Plugin Factory +// ============================================================================= + ExampleAnalysisPluginFactory::ExampleAnalysisPluginFactory() { getPluginMetadata().setDescription("Example analysis plugin"); diff --git a/ExampleData/src/ExampleDataPlugin.cpp b/ExampleData/src/ExampleDataPlugin.cpp index 321a82c..108a9b1 100644 --- a/ExampleData/src/ExampleDataPlugin.cpp +++ b/ExampleData/src/ExampleDataPlugin.cpp @@ -153,15 +153,19 @@ void PixelSet::selectInvert() events().notifyDatasetDataSelectionChanged(this); } +// ============================================================================= +// Plugin Factory +// ============================================================================= + ExampleDataPluginFactory::ExampleDataPluginFactory() { getPluginMetadata().setDescription("Example data plugin"); getPluginMetadata().setSummary("This example shows how to implement a basic data plugin in ManiVault Studio."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "J. Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, - { "T. Kroes", "Lead software architect", "", { "LUMC" } }, - { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } } + { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } }, + { "T. Kroes", { "Lead software architect" }, { "LUMC" } }, + { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } } }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, diff --git a/ExampleDependencies/src/ExampleDependenciesPlugin.cpp b/ExampleDependencies/src/ExampleDependenciesPlugin.cpp index 3242f30..234a38c 100644 --- a/ExampleDependencies/src/ExampleDependenciesPlugin.cpp +++ b/ExampleDependencies/src/ExampleDependenciesPlugin.cpp @@ -135,6 +135,10 @@ void ExampleDependenciesPlugin::compute() std::cout << "ExampleDependenciesPlugin: Finished." << std::endl; } +// ============================================================================= +// Plugin Factory +// ============================================================================= + ExampleDependenciesPluginFactory::ExampleDependenciesPluginFactory() { getPluginMetadata().setDescription("Example dependencies plugin"); diff --git a/ExampleTransformation/src/ExampleTransformationPlugin.cpp b/ExampleTransformation/src/ExampleTransformationPlugin.cpp index e490c58..ce76d30 100644 --- a/ExampleTransformation/src/ExampleTransformationPlugin.cpp +++ b/ExampleTransformation/src/ExampleTransformationPlugin.cpp @@ -121,6 +121,10 @@ QString ExampleTransformationPlugin::getTypeName(const Type& type) return types[type]; } +// ============================================================================= +// Plugin Factory +// ============================================================================= + ExampleTransformationPluginFactory::ExampleTransformationPluginFactory() { getPluginMetadata().setDescription("Example transformation plugin"); diff --git a/ExampleView/src/ExampleViewPlugin.cpp b/ExampleView/src/ExampleViewPlugin.cpp index 3434d3e..2a91dae 100644 --- a/ExampleView/src/ExampleViewPlugin.cpp +++ b/ExampleView/src/ExampleViewPlugin.cpp @@ -183,15 +183,19 @@ void ExampleViewPlugin::onDataEvent(mv::DatasetEvent* dataEvent) } } -ExampleViewPluginFactory::~ExampleViewPluginFactory() +// ============================================================================= +// Plugin Factory +// ============================================================================= + +ExampleViewPluginFactory::ExampleViewPluginFactory() { getPluginMetadata().setDescription("Example view plugin"); getPluginMetadata().setSummary("This example plugin shows how to implement a basic view plugin in ManiVault."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "T. Kroes", "Lead software architect", "", { "LUMC" } }, - { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } }, - { "J.Thijssen", "Software architect", "", { "LUMC", "TU Delft" } } + { "T. Kroes", { "Lead software architect" }, { "LUMC" } }, + { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } }, + { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } } }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, diff --git a/ExampleView/src/ExampleViewPlugin.h b/ExampleView/src/ExampleViewPlugin.h index 086fd40..7c8515b 100644 --- a/ExampleView/src/ExampleViewPlugin.h +++ b/ExampleView/src/ExampleViewPlugin.h @@ -80,10 +80,7 @@ class ExampleViewPluginFactory : public ViewPluginFactory public: /** Default constructor */ - ExampleViewPluginFactory() {} - - /** Destructor */ - ~ExampleViewPluginFactory() override; + ExampleViewPluginFactory(); /** Creates an instance of the example view plugin */ ViewPlugin* produce() override; diff --git a/ExampleViewJS/src/ExampleViewJSPlugin.cpp b/ExampleViewJS/src/ExampleViewJSPlugin.cpp index 3874540..5da6a0f 100644 --- a/ExampleViewJS/src/ExampleViewJSPlugin.cpp +++ b/ExampleViewJS/src/ExampleViewJSPlugin.cpp @@ -231,13 +231,13 @@ void ExampleViewJSPlugin::createData() ExampleViewJSPluginFactory::ExampleViewJSPluginFactory() { - getPluginMetadata().setDescription("Example Javascript view plugin"); - getPluginMetadata().setSummary("This plugin shows how to implement a basic Javascript-based view plugin in ManiVault."); + getPluginMetadata().setDescription("Example JavaScript view plugin"); + getPluginMetadata().setSummary("This plugin shows how to implement a basic JavaScript-based view plugin in ManiVault."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } }, - { "J.Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, - { "T. Kroes", "Lead software architect", "", { "LUMC" } } + { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } }, + { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } }, + { "T. Kroes", { "Lead software architect" }, { "LUMC" } } }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, diff --git a/ExampleViewJS/src/ExampleViewJSPlugin.h b/ExampleViewJS/src/ExampleViewJSPlugin.h index 2280e7c..161bd0c 100644 --- a/ExampleViewJS/src/ExampleViewJSPlugin.h +++ b/ExampleViewJS/src/ExampleViewJSPlugin.h @@ -71,7 +71,7 @@ public slots: private: ChartWidget* _chartWidget; // WebWidget that sets up the HTML page DropWidget* _dropWidget; // Widget for drag and drop behavior - mv::Dataset _currentDataSet; // Reference to currently shown data set + mv::Dataset _currentDataSet; // Reference to currently shown data set }; /** @@ -89,10 +89,7 @@ class ExampleViewJSPluginFactory : public ViewPluginFactory public: /** Default constructor */ - ExampleViewJSPluginFactory() {} - - /** Destructor */ - ~ExampleViewJSPluginFactory() override; + ExampleViewJSPluginFactory(); /** Get plugin icon */ QIcon getIcon(const QColor& color = Qt::black) const override; diff --git a/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp b/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp index d2ea336..89e918e 100644 --- a/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp +++ b/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp @@ -236,18 +236,14 @@ ExampleViewGLPluginFactory::ExampleViewGLPluginFactory() : _statusBarPopupGroupAction(this, "Popup Group"), _statusBarPopupAction(this, "Popup") { - getLearningCenterAction().setPluginTitle(""); - getLearningCenterAction().setShortDescription("Example OpenGL view plugin"); - getLearningCenterAction().setLongDescription(""); - getPluginMetadata().setDescription("Example OpenGL view"); getPluginMetadata().setSummary("This example plugin shows how to implement a basic OpenGL-based view plugin in ManiVault."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "J.Thijssen", "Software architect", "", { "LUMC", "TU Delft" } }, - { "A. Vieth", "Plugin developer & maintainer", "", { "LUMC", "TU Delft" } }, - { "T. Kroes", "Lead software architect", "", { "LUMC" } } - }); + { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } }, + { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } }, + { "T. Kroes", { "Lead software architect" }, { "LUMC" } } + }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } diff --git a/ExampleWriter/src/ExampleWriterPlugin.cpp b/ExampleWriter/src/ExampleWriterPlugin.cpp index a7a448f..528797d 100644 --- a/ExampleWriter/src/ExampleWriterPlugin.cpp +++ b/ExampleWriter/src/ExampleWriterPlugin.cpp @@ -66,6 +66,10 @@ void ExampleWriterPlugin::writeData() } } +// ============================================================================= +// Plugin Factory +// ============================================================================= + ExampleWriterPluginFactory::ExampleWriterPluginFactory() { getPluginMetadata().setDescription("Example writer plugin"); From 1844037967c46ec42c99657c97efee3cbc39dcbe Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Fri, 17 Jan 2025 13:12:45 +0100 Subject: [PATCH 12/12] Merge --- ExampleData/src/ExampleDataPlugin.cpp | 2 +- ExampleView/src/ExampleViewPlugin.cpp | 10 +++------- ExampleViewJS/src/ExampleViewJSPlugin.cpp | 4 ++-- ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp | 4 ++-- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ExampleData/src/ExampleDataPlugin.cpp b/ExampleData/src/ExampleDataPlugin.cpp index 108a9b1..6163262 100644 --- a/ExampleData/src/ExampleDataPlugin.cpp +++ b/ExampleData/src/ExampleDataPlugin.cpp @@ -166,7 +166,7 @@ ExampleDataPluginFactory::ExampleDataPluginFactory() { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } }, { "T. Kroes", { "Lead software architect" }, { "LUMC" } }, { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } } - }); + }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } diff --git a/ExampleView/src/ExampleViewPlugin.cpp b/ExampleView/src/ExampleViewPlugin.cpp index 2a91dae..4e22ea1 100644 --- a/ExampleView/src/ExampleViewPlugin.cpp +++ b/ExampleView/src/ExampleViewPlugin.cpp @@ -183,20 +183,16 @@ void ExampleViewPlugin::onDataEvent(mv::DatasetEvent* dataEvent) } } -// ============================================================================= -// Plugin Factory -// ============================================================================= - ExampleViewPluginFactory::ExampleViewPluginFactory() { getPluginMetadata().setDescription("Example view plugin"); - getPluginMetadata().setSummary("This example plugin shows how to implement a basic view plugin in ManiVault."); + getPluginMetadata().setSummary("This example shows how to implement a basic view plugin in ManiVault Studio."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ - { "T. Kroes", { "Lead software architect" }, { "LUMC" } }, { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } }, + { "T. Kroes", { "Lead software architect" }, { "LUMC" } }, { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } } - }); + }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" } diff --git a/ExampleViewJS/src/ExampleViewJSPlugin.cpp b/ExampleViewJS/src/ExampleViewJSPlugin.cpp index 5da6a0f..fe51627 100644 --- a/ExampleViewJS/src/ExampleViewJSPlugin.cpp +++ b/ExampleViewJS/src/ExampleViewJSPlugin.cpp @@ -231,8 +231,8 @@ void ExampleViewJSPlugin::createData() ExampleViewJSPluginFactory::ExampleViewJSPluginFactory() { - getPluginMetadata().setDescription("Example JavaScript view plugin"); - getPluginMetadata().setSummary("This plugin shows how to implement a basic JavaScript-based view plugin in ManiVault."); + getPluginMetadata().setDescription("Example Javascript view plugin"); + getPluginMetadata().setSummary("This plugin shows how to implement a basic Javascript-based view plugin in ManiVault Studio."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } }, diff --git a/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp b/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp index 89e918e..ddacfe9 100644 --- a/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp +++ b/ExampleViewOpenGL/src/ExampleViewGLPlugin.cpp @@ -237,13 +237,13 @@ ExampleViewGLPluginFactory::ExampleViewGLPluginFactory() : _statusBarPopupAction(this, "Popup") { getPluginMetadata().setDescription("Example OpenGL view"); - getPluginMetadata().setSummary("This example plugin shows how to implement a basic OpenGL-based view plugin in ManiVault."); + getPluginMetadata().setSummary("This example shows how to implement a basic OpenGL-based view plugin in ManiVault Studio."); getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" }); getPluginMetadata().setAuthors({ { "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } }, { "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } }, { "T. Kroes", { "Lead software architect" }, { "LUMC" } } - }); + }); getPluginMetadata().setOrganizations({ { "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" }, { "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" }