comparison framework/Document.h @ 297:1e61f0c26593 tonioni_multi_transform

Enable multi-transform stuff through to here
author Chris Cannam
date Mon, 02 Dec 2013 15:06:16 +0000
parents 19282182e60d
children f72d58d1ccb0
comparison
equal deleted inserted replaced
296:19282182e60d 297:1e61f0c26593
116 */ 116 */
117 Layer *createDerivedLayer(const Transform &, 117 Layer *createDerivedLayer(const Transform &,
118 const ModelTransformer::Input &); 118 const ModelTransformer::Input &);
119 119
120 /** 120 /**
121 * Exactly the same as above, but providing exactly the layer type 121 * Create and return suitable layers for the given transforms,
122 * for cases in which the first suitable layer type for a transform 122 * which must be identical apart from the output (i.e. must use
123 * is not the desired one. 123 * the same plugin and configuration). The layers are returned in
124 * WARNING: highly redundant code (with the above creation funciotn) 124 * the same order as the transformed are supplied.
125 */ 125 */
126 Layer *createDerivedLayer(const Transform &, 126 std::vector<Layer *> createDerivedLayers(const Transforms &,
127 const ModelTransformer::Input &, 127 const ModelTransformer::Input &);
128 const LayerFactory::LayerType type);
129 128
130 /** 129 /**
131 * Delete the given layer, and also its associated model if no 130 * Delete the given layer, and also its associated model if no
132 * longer used by any other layer. In general, this should be the 131 * longer used by any other layer. In general, this should be the
133 * only method used to delete layers -- doing so directly is a bit 132 * only method used to delete layers -- doing so directly is a bit
161 * running the transform and returning the resulting model. 160 * running the transform and returning the resulting model.
162 */ 161 */
163 Model *addDerivedModel(const Transform &transform, 162 Model *addDerivedModel(const Transform &transform,
164 const ModelTransformer::Input &input, 163 const ModelTransformer::Input &input,
165 QString &returnedMessage); 164 QString &returnedMessage);
165
166 /**
167 * Add derived models associated with the given set of related
168 * transforms, running the transforms and returning the resulting
169 * models.
170 */
171 std::vector<Model *> addDerivedModels(const Transforms &transforms,
172 const ModelTransformer::Input &input,
173 QString &returnedMessage);
166 174
167 /** 175 /**
168 * Add a derived model associated with the given transform. This 176 * Add a derived model associated with the given transform. This
169 * is necessary to register any derived model that was not created 177 * is necessary to register any derived model that was not created
170 * by the document using createDerivedModel or createDerivedLayer. 178 * by the document using createDerivedModel or createDerivedLayer.