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

Function ViewDirectionToV2String

Modules/QtWidgets/src/QmitkMxNMultiWidget.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 std::string ViewDirectionToV2String(mitk::AnatomicalPlane plane)
72 {
73 switch (plane)
74 {
75 case mitk::AnatomicalPlane::Axial: return "axial";
76 case mitk::AnatomicalPlane::Sagittal: return "sagittal";
77 case mitk::AnatomicalPlane::Coronal: return "coronal";
78 case mitk::AnatomicalPlane::Original: return "original";
79 }
80 mitkThrow() << "ViewDirectionToV2String: unsupported AnatomicalPlane enum value.";
81 }
82
83 // Pre-walks a v2 'root' subtree to validate structural shape and collect
84 // per-window ids + referenced group labels. Throws on missing required

Callers 1

MakeWindowDescriptorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected