diff 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
line wrap: on
line diff
--- a/document/Document.h	Thu Oct 12 14:56:28 2006 +0000
+++ b/document/Document.h	Fri Oct 13 12:51:05 2006 +0000
@@ -130,10 +130,18 @@
     WaveFileModel *getMainModel() { return m_mainModel; }
 
     /**
-     * Add a derived model associated with the given transform name.
-     * This is necessary to register any derived model that was not
-     * created by the document using
-     * e.g. createDerivedLayer(TransformName) above.
+     * Add a derived model associated with the given transform,
+     * running the transform and returning the resulting model.
+     */
+    Model *addDerivedModel(TransformName transform,
+                           Model *inputModel,
+                           const PluginTransform::ExecutionContext &context,
+                           QString configurationXml);
+
+    /**
+     * Add a derived model associated with the given transform.  This
+     * is necessary to register any derived model that was not created
+     * by the document using createDerivedModel or createDerivedLayer.
      */
     void addDerivedModel(TransformName,
                          Model *inputModel,
@@ -193,10 +201,6 @@
     void modelRegenerationFailed(QString layerName, QString transformName);
 
 protected:
-    Model *createModelForTransform(TransformName transform,
-                                   Model *inputModel,
-                                   const PluginTransform::ExecutionContext &context,
-                                   QString configurationXml);
     void releaseModel(Model *model);
 
     /**