comparison document/Document.h @ 55:ca1e3f5657d5

* Simplify maker names in plugin menu * Make sure derived models have a name (based on the transform) * Don't start deriving a model from a derived model until the derived model is ready * Tidy up completion management in writable wave file model * Make writable models save/reload correctly from session file (i.e. regenerating from the original transform) * Same for dense 3d models -- don't save the data, just the transform details * Add a comment describing the SV file format
author Chris Cannam
date Fri, 13 Oct 2006 12:51:05 +0000
parents 61259228d029
children cf27fc7feb7a
comparison
equal deleted inserted replaced
54:ec77936c268e 55:ca1e3f5657d5
128 * Get the main model (the source for playback sample rate, etc). 128 * Get the main model (the source for playback sample rate, etc).
129 */ 129 */
130 WaveFileModel *getMainModel() { return m_mainModel; } 130 WaveFileModel *getMainModel() { return m_mainModel; }
131 131
132 /** 132 /**
133 * Add a derived model associated with the given transform name. 133 * Add a derived model associated with the given transform,
134 * This is necessary to register any derived model that was not 134 * running the transform and returning the resulting model.
135 * created by the document using 135 */
136 * e.g. createDerivedLayer(TransformName) above. 136 Model *addDerivedModel(TransformName transform,
137 Model *inputModel,
138 const PluginTransform::ExecutionContext &context,
139 QString configurationXml);
140
141 /**
142 * Add a derived model associated with the given transform. This
143 * is necessary to register any derived model that was not created
144 * by the document using createDerivedModel or createDerivedLayer.
137 */ 145 */
138 void addDerivedModel(TransformName, 146 void addDerivedModel(TransformName,
139 Model *inputModel, 147 Model *inputModel,
140 const PluginTransform::ExecutionContext &context, 148 const PluginTransform::ExecutionContext &context,
141 Model *outputModelToAdd, 149 Model *outputModelToAdd,
191 199
192 void modelGenerationFailed(QString transformName); 200 void modelGenerationFailed(QString transformName);
193 void modelRegenerationFailed(QString layerName, QString transformName); 201 void modelRegenerationFailed(QString layerName, QString transformName);
194 202
195 protected: 203 protected:
196 Model *createModelForTransform(TransformName transform,
197 Model *inputModel,
198 const PluginTransform::ExecutionContext &context,
199 QString configurationXml);
200 void releaseModel(Model *model); 204 void releaseModel(Model *model);
201 205
202 /** 206 /**
203 * Delete the given layer, and also its associated model if no 207 * Delete the given layer, and also its associated model if no
204 * longer used by any other layer. In general, this should be the 208 * longer used by any other layer. In general, this should be the