| 941 | } |
| 942 | |
| 943 | void Array3D::setCurrentDepth(int depth) |
| 944 | { |
| 945 | validateDepth(depth); |
| 946 | |
| 947 | if (depth < 0 || _rowMap.empty()) { |
| 948 | _currentDepth = 0; |
| 949 | } |
| 950 | else if (depth >= static_cast<int>(_rowMap.size())) { |
| 951 | _currentDepth = _rowMap.size() - 1; |
| 952 | } |
| 953 | else { |
| 954 | _currentDepth = depth; |
| 955 | } |
| 956 | } |
| 957 | |
| 958 | QString Array3D::getYAMLString() const |
| 959 | { |