Mercurial > hg > svcore
comparison transform/FeatureExtractionPluginTransform.cpp @ 56:2157fa46c1e7
* Add plugin parameter dialog, and use it to set up parameters for feature
extraction plugins via a semi-opaque (translucent?) configurationXml string
which is associated with a given transform instance.
This is not yet saved to and restored from the SV file properly.
* Remove no-longer-relevant BeatDetect and BeatDetectionFunction transforms
(replaced a long time ago with the beat detector plugin).
author | Chris Cannam |
---|---|
date | Wed, 22 Mar 2006 17:38:29 +0000 |
parents | d397ea0a79f5 |
children | ba405e5e69d3 |
comparison
equal
deleted
inserted
replaced
55:6befca60ab4e | 56:2157fa46c1e7 |
---|---|
27 | 27 |
28 #include <iostream> | 28 #include <iostream> |
29 | 29 |
30 FeatureExtractionPluginTransform::FeatureExtractionPluginTransform(Model *inputModel, | 30 FeatureExtractionPluginTransform::FeatureExtractionPluginTransform(Model *inputModel, |
31 QString pluginId, | 31 QString pluginId, |
32 QString configurationXml, | |
32 QString outputName) : | 33 QString outputName) : |
33 Transform(inputModel), | 34 Transform(inputModel), |
34 m_plugin(0), | 35 m_plugin(0), |
35 m_descriptor(0), | 36 m_descriptor(0), |
36 m_outputFeatureNo(0) | 37 m_outputFeatureNo(0) |
50 | 51 |
51 if (!m_plugin) { | 52 if (!m_plugin) { |
52 std::cerr << "FeatureExtractionPluginTransform: Failed to instantiate plugin \"" | 53 std::cerr << "FeatureExtractionPluginTransform: Failed to instantiate plugin \"" |
53 << pluginId.toStdString() << "\"" << std::endl; | 54 << pluginId.toStdString() << "\"" << std::endl; |
54 return; | 55 return; |
56 } | |
57 | |
58 if (configurationXml != "") { | |
59 m_plugin->setParametersFromXml(configurationXml); | |
55 } | 60 } |
56 | 61 |
57 FeatureExtractionPlugin::OutputList outputs = | 62 FeatureExtractionPlugin::OutputList outputs = |
58 m_plugin->getOutputDescriptors(); | 63 m_plugin->getOutputDescriptors(); |
59 | 64 |