Skip to content

Commit 66a41ef

Browse files
authored
Set plugin metadata (#159)
1 parent 5c334ea commit 66a41ef

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

src/ScatterplotPlugin.cpp

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,6 @@ ScatterplotPlugin::ScatterplotPlugin(const PluginFactory* factory) :
254254

255255
//getSamplerAction().setViewingMode(ViewPluginSamplerAction::ViewingMode::Tooltip);
256256
getSamplerAction().getEnabledAction().setChecked(false);
257-
258-
getLearningCenterAction().setPluginTitle("Scatterplot view");
259-
260-
getLearningCenterAction().setShortDescription("Scatterplot view plugin");
261-
getLearningCenterAction().setLongDescription("<p>High-performance scatterplot for the <b>ManiVault</b> framework, capable of handling millions of data points.</p>");
262257

263258
getLearningCenterAction().addVideos(QStringList({ "Practitioner", "Developer" }));
264259
}
@@ -805,6 +800,23 @@ void ScatterplotPlugin::setYDimension(const std::int32_t& dimensionIndex)
805800
updateData();
806801
}
807802

803+
ScatterplotPluginFactory::ScatterplotPluginFactory()
804+
{
805+
getPluginMetadata().setDescription("Scatterplot view");
806+
getPluginMetadata().setSummary("High-performance scatterplot plugin for ManiVault Studio, capable of handling millions of data points.");
807+
getPluginMetadata().setCopyrightHolder({ "BioVault (Biomedical Visual Analytics Unit LUMC - TU Delft)" });
808+
getPluginMetadata().setAuthors({
809+
{ "J. Thijssen", { "Software architect" }, { "LUMC", "TU Delft" } },
810+
{ "T. Kroes", { "Lead software architect" }, { "LUMC" } },
811+
{ "A. Vieth", { "Plugin developer", "Maintainer" }, { "LUMC", "TU Delft" } }
812+
});
813+
getPluginMetadata().setOrganizations({
814+
{ "LUMC", "Leiden University Medical Center", "https://www.lumc.nl/en/" },
815+
{ "TU Delft", "Delft university of technology", "https://www.tudelft.nl/" }
816+
});
817+
getPluginMetadata().setLicenseText("This plugin is distributed under the [LGPL v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html) license.");
818+
}
819+
808820
QIcon ScatterplotPluginFactory::getIcon(const QColor& color /*= Qt::black*/) const
809821
{
810822
return Application::getIconFont("FontAwesome").getIcon("braille", color);

src/ScatterplotPlugin.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ class ScatterplotPluginFactory : public ViewPluginFactory
137137
FILE "ScatterplotPlugin.json")
138138

139139
public:
140-
ScatterplotPluginFactory(void) {}
141-
~ScatterplotPluginFactory(void) override {}
140+
ScatterplotPluginFactory();
142141

143142
/**
144143
* Get plugin icon

0 commit comments

Comments
 (0)