comparison layer/LayerFactory.h @ 1455:9e846af73f3e single-point

Add setLayerProperties (from XML string)
author Chris Cannam
date Fri, 10 May 2019 09:22:20 +0100
parents 43a28a52f8ab
children f2525e6cbdf1
comparison
equal deleted inserted replaced
1454:4a6ca97ce783 1455:9e846af73f3e
66 66
67 LayerType getLayerType(const Layer *); 67 LayerType getLayerType(const Layer *);
68 68
69 Layer *createLayer(LayerType type); 69 Layer *createLayer(LayerType type);
70 70
71 /**
72 * Set the default properties of a layer, from the XML string
73 * contained in the LayerDefaults settings group for the given
74 * layer type. Leave unchanged any properties not mentioned in the
75 * settings.
76 */
71 void setLayerDefaultProperties(LayerType type, Layer *layer); 77 void setLayerDefaultProperties(LayerType type, Layer *layer);
78
79 /**
80 * Set the properties of a layer, from the XML string
81 * provided. Leave unchanged any properties not mentioned.
82 */
83 void setLayerProperties(Layer *layer, QString xmlString);
72 84
73 QString getLayerPresentationName(LayerType type); 85 QString getLayerPresentationName(LayerType type);
74 86
75 bool isLayerSliceable(const Layer *); 87 bool isLayerSliceable(const Layer *);
76 88