Mercurial > hg > svapp
comparison framework/Document.h @ 296:19282182e60d tonioni_multi_transform
Update to the multi-transform api in svcore
author | Chris Cannam |
---|---|
date | Mon, 02 Dec 2013 12:29:54 +0000 |
parents | f3f3ca272bce |
children | 1e61f0c26593 |
comparison
equal
deleted
inserted
replaced
295:14b1768e5406 | 296:19282182e60d |
---|---|
123 * is not the desired one. | 123 * is not the desired one. |
124 * WARNING: highly redundant code (with the above creation funciotn) | 124 * WARNING: highly redundant code (with the above creation funciotn) |
125 */ | 125 */ |
126 Layer *createDerivedLayer(const Transform &, | 126 Layer *createDerivedLayer(const Transform &, |
127 const ModelTransformer::Input &, | 127 const ModelTransformer::Input &, |
128 const LayerFactory::LayerType type, | 128 const LayerFactory::LayerType type); |
129 const FeatureExtractionModelTransformer::PreferredOutputModel outputmodel); | |
130 | 129 |
131 /** | 130 /** |
132 * Delete the given layer, and also its associated model if no | 131 * Delete the given layer, and also its associated model if no |
133 * longer used by any other layer. In general, this should be the | 132 * longer used by any other layer. In general, this should be the |
134 * only method used to delete layers -- doing so directly is a bit | 133 * only method used to delete layers -- doing so directly is a bit |
158 bool isKnownModel(const Model *) const; | 157 bool isKnownModel(const Model *) const; |
159 | 158 |
160 /** | 159 /** |
161 * Add a derived model associated with the given transform, | 160 * Add a derived model associated with the given transform, |
162 * running the transform and returning the resulting model. | 161 * running the transform and returning the resulting model. |
163 * In case the output model is a NoteModel, the preferred output model will be selected: {NoteModel | FlexiNoteModel}. | |
164 */ | 162 */ |
165 Model *addDerivedModel(const Transform &transform, | 163 Model *addDerivedModel(const Transform &transform, |
166 const ModelTransformer::Input &input, | 164 const ModelTransformer::Input &input, |
167 QString &returnedMessage, | 165 QString &returnedMessage); |
168 FeatureExtractionModelTransformer::PreferredOutputModel outputmodel = FeatureExtractionModelTransformer::NoteOutputModel); | |
169 | 166 |
170 /** | 167 /** |
171 * Add a derived model associated with the given transform. This | 168 * Add a derived model associated with the given transform. This |
172 * is necessary to register any derived model that was not created | 169 * is necessary to register any derived model that was not created |
173 * by the document using createDerivedModel or createDerivedLayer. | 170 * by the document using createDerivedModel or createDerivedLayer. |