Mercurial > hg > svgui
comparison layer/Layer.h @ 1489:b402121d8f5f
Add direct method to get source model
author | Chris Cannam |
---|---|
date | Fri, 02 Aug 2019 16:42:32 +0100 |
parents | e540aa5d89cd |
children | 4eafe5a1b655 |
comparison
equal
deleted
inserted
replaced
1488:bd7fdc418f36 | 1489:b402121d8f5f |
---|---|
62 | 62 |
63 /** | 63 /** |
64 * Return the ID of the model represented in this layer. | 64 * Return the ID of the model represented in this layer. |
65 */ | 65 */ |
66 virtual ModelId getModel() const = 0; | 66 virtual ModelId getModel() const = 0; |
67 | |
68 /** | |
69 * Return the ID of the source model for the model represented in | |
70 * this layer. If the model has no other source, or there is no | |
71 * model here, return None. | |
72 */ | |
73 ModelId getSourceModel() const; | |
67 | 74 |
68 /** | 75 /** |
69 * Return a zoom constraint object defining the supported zoom | 76 * Return a zoom constraint object defining the supported zoom |
70 * levels for this layer. If this returns zero, the layer will | 77 * levels for this layer. If this returns zero, the layer will |
71 * support any integer zoom level. | 78 * support any integer zoom level. |