| 225 | } |
| 226 | |
| 227 | mitk::ScalarType mitk::BaseGeometry::GetExtent(unsigned int direction) const |
| 228 | { |
| 229 | assert(m_BoundingBox.IsNotNull()); |
| 230 | if (direction >= m_NDimensions) |
| 231 | mitkThrow() << "Direction is too big. This geometry is for 3D Data"; |
| 232 | BoundsArrayType bounds = m_BoundingBox->GetBounds(); |
| 233 | return bounds[direction * 2 + 1] - bounds[direction * 2]; |
| 234 | } |
| 235 | |
| 236 | bool mitk::BaseGeometry::Is2DConvertable() |
| 237 | { |