comparison framework/Document.h @ 693:3c5dc95bea91 by-id

Tidy
author Chris Cannam
date Wed, 17 Jul 2019 13:28:37 +0100
parents c8ba09756eff
children a27a6113fdd7
comparison
equal deleted inserted replaced
692:ad5917362158 693:3c5dc95bea91
156 * identical apart from the output (i.e. must use the same plugin 156 * identical apart from the output (i.e. must use the same plugin
157 * and configuration). This method returns after initialising the 157 * and configuration). This method returns after initialising the
158 * transformer process, and the layers are returned through a 158 * transformer process, and the layers are returned through a
159 * subsequent call to the provided handler (which must be 159 * subsequent call to the provided handler (which must be
160 * non-null). The handle returned will be passed through to the 160 * non-null). The handle returned will be passed through to the
161 * handler callback, and may be also used for cancelling the task. 161 * handler callback.
162 */ 162 */
163 LayerCreationAsyncHandle createDerivedLayersAsync(const Transforms &, 163 LayerCreationAsyncHandle createDerivedLayersAsync(const Transforms &,
164 const ModelTransformer::Input &, 164 const ModelTransformer::Input &,
165 LayerCreationHandler *handler); 165 LayerCreationHandler *handler);
166
167 /**
168 * Indicate that the async layer creation task associated with the
169 * given handle should be cancelled. There is no guarantee about
170 * what this will mean, and the handler callback may still be
171 * called.
172 */
173 void cancelAsyncLayerCreation(LayerCreationAsyncHandle handle);
174 166
175 /** 167 /**
176 * Delete the given layer, and also its associated model if no 168 * Delete the given layer, and also its associated model if no
177 * longer used by any other layer. In general, this should be the 169 * longer used by any other layer. In general, this should be the
178 * only method used to delete layers -- doing so directly is a bit 170 * only method used to delete layers -- doing so directly is a bit
194 */ 186 */
195 ModelId getMainModel() { return m_mainModel; } 187 ModelId getMainModel() { return m_mainModel; }
196 188
197 std::vector<ModelId> getTransformInputModels(); 189 std::vector<ModelId> getTransformInputModels();
198 190
199 //??? investigate & document 191 /**
192 * Return true if the model id is known to be the main model or
193 * one of the other existing models that can be shown in a new
194 * layer.
195 */
200 bool isKnownModel(ModelId) const; 196 bool isKnownModel(ModelId) const;
201 197
202 /** 198 /**
203 * Add a derived model associated with the given transform, 199 * Add a derived model associated with the given transform,
204 * running the transform and returning the resulting model. 200 * running the transform and returning the resulting model.