comparison transform/TransformFactory.h @ 27:61259228d029

* More to do with passing around step/blocksize etc from plugin dialog to plugins. Still some puzzling unresolved details.
author Chris Cannam
date Tue, 19 Sep 2006 14:37:06 +0000
parents d88d117e0c34
children 544ab25d2372
comparison
equal deleted inserted replaced
26:d88d117e0c34 27:61259228d029
15 15
16 #ifndef _TRANSFORM_FACTORY_H_ 16 #ifndef _TRANSFORM_FACTORY_H_
17 #define _TRANSFORM_FACTORY_H_ 17 #define _TRANSFORM_FACTORY_H_
18 18
19 #include "Transform.h" 19 #include "Transform.h"
20 #include "PluginTransform.h"
20 21
21 #include <map> 22 #include <map>
22 23
23 namespace Vamp { class PluginBase; } 24 namespace Vamp { class PluginBase; }
24 25
66 * asking the user, most likely). Returns true if the transform 67 * asking the user, most likely). Returns true if the transform
67 * is acceptable, false if the operation should be cancelled. 68 * is acceptable, false if the operation should be cancelled.
68 */ 69 */
69 bool getConfigurationForTransform(TransformName name, 70 bool getConfigurationForTransform(TransformName name,
70 Model *inputModel, 71 Model *inputModel,
71 int &channel, 72 PluginTransform::ExecutionContext &context,
72 QString &configurationXml); 73 QString &configurationXml);
73 74
74 /** 75 /**
75 * Return the output model resulting from applying the named 76 * Return the output model resulting from applying the named
76 * transform to the given input model. The transform may still be 77 * transform to the given input model. The transform may still be
83 * 84 *
84 * The returned model is owned by the caller and must be deleted 85 * The returned model is owned by the caller and must be deleted
85 * when no longer needed. 86 * when no longer needed.
86 */ 87 */
87 Model *transform(TransformName name, Model *inputModel, 88 Model *transform(TransformName name, Model *inputModel,
88 int channel, QString configurationXml = ""); 89 const PluginTransform::ExecutionContext &context,
90 QString configurationXml = "");
89 91
90 /** 92 /**
91 * Full description of a transform, suitable for putting on a menu. 93 * Full description of a transform, suitable for putting on a menu.
92 */ 94 */
93 QString getTransformDescription(TransformName name); 95 QString getTransformDescription(TransformName name);
126 protected slots: 128 protected slots:
127 void transformFinished(); 129 void transformFinished();
128 130
129 protected: 131 protected:
130 Transform *createTransform(TransformName name, Model *inputModel, 132 Transform *createTransform(TransformName name, Model *inputModel,
131 int channel, QString configurationXml, bool start); 133 const PluginTransform::ExecutionContext &context,
134 QString configurationXml, bool start);
132 135
133 struct TransformIdent 136 struct TransformIdent
134 { 137 {
135 TransformName name; 138 TransformName name;
136 QString configurationXml; 139 QString configurationXml;