comparison framework/Document.h @ 270:776e1aae635a tonioni

fixed flexi note layer and propagated model selection to analyser
author gyorgyf
date Sat, 13 Apr 2013 13:39:17 +0100
parents 40a0fa9af6b4
children f3f3ca272bce
comparison
equal deleted inserted replaced
269:40a0fa9af6b4 270:776e1aae635a
17 #define _DOCUMENT_H_ 17 #define _DOCUMENT_H_
18 18
19 #include "layer/LayerFactory.h" 19 #include "layer/LayerFactory.h"
20 #include "transform/Transform.h" 20 #include "transform/Transform.h"
21 #include "transform/ModelTransformer.h" 21 #include "transform/ModelTransformer.h"
22 #include "transform/FeatureExtractionModelTransformer.h"
22 #include "base/Command.h" 23 #include "base/Command.h"
23 24
24 #include <map> 25 #include <map>
25 #include <set> 26 #include <set>
26 27
122 * is not the desired one. 123 * is not the desired one.
123 * WARNING: highly redundant code (with the above creation funciotn) 124 * WARNING: highly redundant code (with the above creation funciotn)
124 */ 125 */
125 Layer *createDerivedLayer(const Transform &, 126 Layer *createDerivedLayer(const Transform &,
126 const ModelTransformer::Input &, 127 const ModelTransformer::Input &,
127 const LayerFactory::LayerType type); 128 const LayerFactory::LayerType type,
129 const FeatureExtractionModelTransformer::PreferredOutputModel outputmodel);
128 130
129 /** 131 /**
130 * Delete the given layer, and also its associated model if no 132 * Delete the given layer, and also its associated model if no
131 * longer used by any other layer. In general, this should be the 133 * longer used by any other layer. In general, this should be the
132 * only method used to delete layers -- doing so directly is a bit 134 * only method used to delete layers -- doing so directly is a bit
159 * Add a derived model associated with the given transform, 161 * Add a derived model associated with the given transform,
160 * running the transform and returning the resulting model. 162 * running the transform and returning the resulting model.
161 */ 163 */
162 Model *addDerivedModel(const Transform &transform, 164 Model *addDerivedModel(const Transform &transform,
163 const ModelTransformer::Input &input, 165 const ModelTransformer::Input &input,
164 QString &returnedMessage); 166 QString &returnedMessage,
167 FeatureExtractionModelTransformer::PreferredOutputModel outputmodel = FeatureExtractionModelTransformer::NoteOutputModel);
165 168
166 /** 169 /**
167 * Add a derived model associated with the given transform. This 170 * Add a derived model associated with the given transform. This
168 * is necessary to register any derived model that was not created 171 * is necessary to register any derived model that was not created
169 * by the document using createDerivedModel or createDerivedLayer. 172 * by the document using createDerivedModel or createDerivedLayer.