Mercurial > hg > svcore
comparison plugin/transform/FeatureExtractionModelTransformer.cpp @ 343:46519c04321b
* Try to ensure alignment works correctly with MATCH plugin v1 as well as v2
author | Chris Cannam |
---|---|
date | Wed, 28 Nov 2007 13:01:50 +0000 |
parents | 516819f2b97b |
children | 277006c62fea |
comparison
equal
deleted
inserted
replaced
342:4175a4930186 | 343:46519c04321b |
---|---|
33 | 33 |
34 #include <iostream> | 34 #include <iostream> |
35 | 35 |
36 FeatureExtractionModelTransformer::FeatureExtractionModelTransformer(Model *inputModel, | 36 FeatureExtractionModelTransformer::FeatureExtractionModelTransformer(Model *inputModel, |
37 QString pluginId, | 37 QString pluginId, |
38 const ExecutionContext &context, | 38 ExecutionContext context, |
39 QString configurationXml, | 39 QString configurationXml, |
40 QString outputName) : | 40 QString outputName) : |
41 PluginTransformer(inputModel, context), | 41 PluginTransformer(inputModel, context), |
42 m_plugin(0), | 42 m_plugin(0), |
43 m_descriptor(0), | 43 m_descriptor(0), |
59 if (!m_plugin) { | 59 if (!m_plugin) { |
60 std::cerr << "FeatureExtractionModelTransformer: Failed to instantiate plugin \"" | 60 std::cerr << "FeatureExtractionModelTransformer: Failed to instantiate plugin \"" |
61 << pluginId.toStdString() << "\"" << std::endl; | 61 << pluginId.toStdString() << "\"" << std::endl; |
62 return; | 62 return; |
63 } | 63 } |
64 | |
65 context.makeConsistentWithPlugin(m_plugin); | |
64 | 66 |
65 if (configurationXml != "") { | 67 if (configurationXml != "") { |
66 PluginXml(m_plugin).setParametersFromXml(configurationXml); | 68 PluginXml(m_plugin).setParametersFromXml(configurationXml); |
67 } | 69 } |
68 | 70 |