| 226 | const df::coord &size() { return dim; } |
| 227 | |
| 228 | void resize_depth(int16_t zdepth) { |
| 229 | dim.z = zdepth; |
| 230 | buf.resize(dim.x * dim.y * dim.z); |
| 231 | } |
| 232 | void shift_depth(int16_t to_add) { |
| 233 | dim.z += to_add; |
| 234 | buf.insert(buf.begin(), dim.x*dim.y*to_add, T()); |