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

Method SetGeometry

Modules/Core/src/DataManagement/mitkImage.cpp:1237–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1235}
1236
1237void mitk::Image::SetGeometry(BaseGeometry *aGeometry3D)
1238{
1239 // Please be aware of the 0.5 offset/pixel-center issue! See Geometry documentation for further information
1240
1241 if (aGeometry3D->GetImageGeometry() == false)
1242 {
1243 MITK_INFO << "WARNING: Applied a non-image geometry onto an image. Please be SURE that this geometry is "
1244 "pixel-center-based! If it is not, you need to call "
1245 "Geometry3D->ChangeImageGeometryConsideringOriginOffset(true) before calling image->setGeometry(..)\n";
1246 }
1247 Superclass::SetGeometry(aGeometry3D);
1248 for (TimeStepType step = 0; step < GetTimeGeometry()->CountTimeSteps(); ++step)
1249 GetTimeGeometry()->GetGeometryForTimeStep(step)->ImageGeometryOn();
1250}
1251
1252void mitk::Image::PrintSelf(std::ostream &os, itk::Indent indent) const
1253{

Callers 15

ExampleDataStructureMethod · 0.45
RunTestMethod · 0.45
SetPlaneGeometryMethod · 0.45
DeformObjectMethod · 0.45
RotateObjectMethod · 0.45
DoUpdatePreviewMethod · 0.45
OnMousePressedMethod · 0.45
OnMouseMovedMethod · 0.45
DoUpdatePreviewMethod · 0.45
setUpMethod · 0.45
Check_SpacingMethod · 0.45

Calls 3

GetTimeGeometryFunction · 0.50
CountTimeStepsMethod · 0.45

Tested by 9

RunTestMethod · 0.36
setUpMethod · 0.36
Check_SpacingMethod · 0.36
Check_TransformMatrixMethod · 0.36
Check_BoundsMethod · 0.36
Check_GridMethod · 0.36
setUpMethod · 0.36
GeometryDataMethod · 0.36