comparison framework/Document.cpp @ 136:6d2e49c59b3b

* Add region model and layer; improve assignment of model types to feature extraction transforms with duration
author Chris Cannam
date Thu, 18 Sep 2008 16:08:14 +0000
parents 3b61a975b47e
children e2aec1708a2c
comparison
equal deleted inserted replaced
135:b742f579ced0 136:6d2e49c59b3b
218 LayerFactory::LayerTypeSet types = 218 LayerFactory::LayerTypeSet types =
219 LayerFactory::getInstance()->getValidLayerTypes(newModel); 219 LayerFactory::getInstance()->getValidLayerTypes(newModel);
220 220
221 if (types.empty()) { 221 if (types.empty()) {
222 std::cerr << "WARNING: Document::createLayerForTransformer: no valid display layer for output of transform " << transform.getIdentifier().toStdString() << std::endl; 222 std::cerr << "WARNING: Document::createLayerForTransformer: no valid display layer for output of transform " << transform.getIdentifier().toStdString() << std::endl;
223 newModel->aboutToDelete();
224 emit modelAboutToBeDeleted(newModel);
225 m_models.erase(newModel);
223 delete newModel; 226 delete newModel;
224 return 0; 227 return 0;
225 } 228 }
226 229
227 //!!! for now, just use the first suitable layer type 230 //!!! for now, just use the first suitable layer type