Skip to content

Commit

Permalink
Add supportedDataTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth committed Oct 29, 2024
1 parent bb0b57b commit 6bd5962
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/HSNE/HsneAnalysisPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ AnalysisPlugin* HsneAnalysisPluginFactory::produce()
return new HsneAnalysisPlugin(this);
}

mv::DataTypes HsneAnalysisPluginFactory::supportedDataTypes() const
{
return { PointType };
}

PluginTriggerActions HsneAnalysisPluginFactory::getPluginTriggerActions(const mv::Datasets& datasets) const
{
PluginTriggerActions pluginTriggerActions;
Expand Down
2 changes: 2 additions & 0 deletions src/HSNE/HsneAnalysisPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ class HsneAnalysisPluginFactory : public AnalysisPluginFactory
*/
QIcon getIcon(const QColor& color = Qt::black) const override;

mv::DataTypes supportedDataTypes() const override;

/**
* Produces the plugin
* @return Pointer to the produced plugin
Expand Down
6 changes: 6 additions & 0 deletions src/tSNE/TsneAnalysisPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "hdi/dimensionality_reduction/hd_joint_probability_generator.h"

#include <fstream>
#include <iostream>

Q_PLUGIN_METADATA(IID "nl.tudelft.TsneAnalysisPlugin")

Expand Down Expand Up @@ -343,6 +344,11 @@ AnalysisPlugin* TsneAnalysisPluginFactory::produce()
return new TsneAnalysisPlugin(this);
}

mv::DataTypes TsneAnalysisPluginFactory::supportedDataTypes() const
{
return { PointType };
}

PluginTriggerActions TsneAnalysisPluginFactory::getPluginTriggerActions(const mv::Datasets& datasets) const
{
PluginTriggerActions pluginTriggerActions;
Expand Down
3 changes: 3 additions & 0 deletions src/tSNE/TsneAnalysisPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ class TsneAnalysisPluginFactory : public AnalysisPluginFactory
*/
QIcon getIcon(const QColor& color = Qt::black) const override;


mv::DataTypes supportedDataTypes() const override;

/**
* Produces the plugin
* @return Pointer to the produced plugin
Expand Down

0 comments on commit 6bd5962

Please sign in to comment.