comparison document/Document.h @ 107:dd11619b73ba

* Update along with latest Vamp API change. This has not yet been tested.
author Chris Cannam
date Mon, 26 Feb 2007 18:13:07 +0000
parents bedc7517b6e8
children 99d65ba33c88
comparison
equal deleted inserted replaced
106:f8e362511b2f 107:dd11619b73ba
103 * transform itself, nor create a model. The caller can safely 103 * transform itself, nor create a model. The caller can safely
104 * add a model to the layer later, but note that all models used 104 * add a model to the layer later, but note that all models used
105 * by a transform layer _must_ be registered with the document 105 * by a transform layer _must_ be registered with the document
106 * using addDerivedModel below. 106 * using addDerivedModel below.
107 */ 107 */
108 Layer *createDerivedLayer(LayerFactory::LayerType, TransformName); 108 Layer *createDerivedLayer(LayerFactory::LayerType, TransformId);
109 109
110 /** 110 /**
111 * Create and return a suitable layer for the given transform, 111 * Create and return a suitable layer for the given transform,
112 * running the transform and associating the resulting model with 112 * running the transform and associating the resulting model with
113 * the new layer. 113 * the new layer.
114 */ 114 */
115 Layer *createDerivedLayer(TransformName, 115 Layer *createDerivedLayer(TransformId,
116 Model *inputModel, 116 Model *inputModel,
117 const PluginTransform::ExecutionContext &context, 117 const PluginTransform::ExecutionContext &context,
118 QString configurationXml); 118 QString configurationXml);
119 119
120 /** 120 /**
133 133
134 /** 134 /**
135 * Add a derived model associated with the given transform, 135 * Add a derived model associated with the given transform,
136 * running the transform and returning the resulting model. 136 * running the transform and returning the resulting model.
137 */ 137 */
138 Model *addDerivedModel(TransformName transform, 138 Model *addDerivedModel(TransformId transform,
139 Model *inputModel, 139 Model *inputModel,
140 const PluginTransform::ExecutionContext &context, 140 const PluginTransform::ExecutionContext &context,
141 QString configurationXml); 141 QString configurationXml);
142 142
143 /** 143 /**
144 * Add a derived model associated with the given transform. This 144 * Add a derived model associated with the given transform. This
145 * is necessary to register any derived model that was not created 145 * is necessary to register any derived model that was not created
146 * by the document using createDerivedModel or createDerivedLayer. 146 * by the document using createDerivedModel or createDerivedLayer.
147 */ 147 */
148 void addDerivedModel(TransformName, 148 void addDerivedModel(TransformId,
149 Model *inputModel, 149 Model *inputModel,
150 const PluginTransform::ExecutionContext &context, 150 const PluginTransform::ExecutionContext &context,
151 Model *outputModelToAdd, 151 Model *outputModelToAdd,
152 QString configurationXml); 152 QString configurationXml);
153 153
234 // and the transform name will be set appropriately. If the 234 // and the transform name will be set appropriately. If the
235 // transform name is set but source is NULL, then there was a 235 // transform name is set but source is NULL, then there was a
236 // transform involved but the (target) model has been modified 236 // transform involved but the (target) model has been modified
237 // since being generated from it. 237 // since being generated from it.
238 const Model *source; 238 const Model *source;
239 TransformName transform; 239 TransformId transform;
240 PluginTransform::ExecutionContext context; 240 PluginTransform::ExecutionContext context;
241 QString configurationXml; 241 QString configurationXml;
242 242
243 // Count of the number of layers using this model. 243 // Count of the number of layers using this model.
244 int refcount; 244 int refcount;