MCPcopy Create free account
hub / github.com/MITK/MITK / GetExtent

Method GetExtent

Modules/Core/src/DataManagement/mitkBaseGeometry.cpp:227–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227mitk::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
236bool mitk::BaseGeometry::Is2DConvertable()
237{

Callers 15

testGetPlanePositionFunction · 0.45
TestGetExtentMethod · 0.45
TestRotateMethod · 0.45
TestCloneMethod · 0.45
GenerateDataFunction · 0.45
AllocateOutputsMethod · 0.45

Calls 2

IsNotNullMethod · 0.80
GetBoundsMethod · 0.45

Tested by 8

testGetPlanePositionFunction · 0.36
TestGetExtentMethod · 0.36
TestRotateMethod · 0.36
TestCloneMethod · 0.36