comparison transform/ModelTransformerFactory.h @ 786:5295bdb58840 tonioni

fixed flexi note layer and propagated model selection to analyser
author gyorgyf
date Sat, 13 Apr 2013 13:39:17 +0100
parents c3dee40e77d2
children 4faea021b5c1
comparison
equal deleted inserted replaced
776:cb587575bc0d 786:5295bdb58840
16 #ifndef _MODEL_TRANSFORMER_FACTORY_H_ 16 #ifndef _MODEL_TRANSFORMER_FACTORY_H_
17 #define _MODEL_TRANSFORMER_FACTORY_H_ 17 #define _MODEL_TRANSFORMER_FACTORY_H_
18 18
19 #include "Transform.h" 19 #include "Transform.h"
20 #include "TransformDescription.h" 20 #include "TransformDescription.h"
21 #include "FeatureExtractionModelTransformer.h"
21 22
22 #include "ModelTransformer.h" 23 #include "ModelTransformer.h"
23 24
24 #include <vamp-hostsdk/PluginBase.h> 25 #include <vamp-hostsdk/PluginBase.h>
25 26
81 * warning to report. 82 * warning to report.
82 * 83 *
83 * The returned model is owned by the caller and must be deleted 84 * The returned model is owned by the caller and must be deleted
84 * when no longer needed. 85 * when no longer needed.
85 */ 86 */
86 Model *transform(const Transform &transform, 87 Model *transform(const Transform &transform,
87 const ModelTransformer::Input &input, 88 const ModelTransformer::Input &input,
88 QString &message); 89 QString &message,
90 const FeatureExtractionModelTransformer::PreferredOutputModel outputmodel = FeatureExtractionModelTransformer::NoteOutputModel);
89 91
90 protected slots: 92 protected slots:
91 void transformerFinished(); 93 void transformerFinished();
92 94
93 void modelAboutToBeDeleted(Model *); 95 void modelAboutToBeDeleted(Model *);
101 103
102 typedef std::set<ModelTransformer *> TransformerSet; 104 typedef std::set<ModelTransformer *> TransformerSet;
103 TransformerSet m_runningTransformers; 105 TransformerSet m_runningTransformers;
104 106
105 static ModelTransformerFactory *m_instance; 107 static ModelTransformerFactory *m_instance;
108 FeatureExtractionModelTransformer::PreferredOutputModel m_preferredOutputModel ;
106 }; 109 };
107 110
108 111
109 #endif 112 #endif