Mercurial > hg > svapp
diff framework/Document.h @ 269:40a0fa9af6b4 tonioni
added a new layer creator (not very nice though)
author | matthiasm |
---|---|
date | Tue, 26 Mar 2013 20:13:06 +0000 |
parents | 2c827ac7c8e7 |
children | 776e1aae635a |
line wrap: on
line diff
--- a/framework/Document.h Tue Mar 26 16:56:39 2013 +0000 +++ b/framework/Document.h Tue Mar 26 20:13:06 2013 +0000 @@ -117,6 +117,16 @@ const ModelTransformer::Input &); /** + * Exactly the same as above, but providing exactly the layer type + * for cases in which the first suitable layer type for a transform + * is not the desired one. + * WARNING: highly redundant code (with the above creation funciotn) + */ + Layer *createDerivedLayer(const Transform &, + const ModelTransformer::Input &, + const LayerFactory::LayerType type); + + /** * Delete the given layer, and also its associated model if no * longer used by any other layer. In general, this should be the * only method used to delete layers -- doing so directly is a bit